Advertisement
afterlife88

Untitled

Mar 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1.   private void adxRibbonButton3_OnClick(object sender, IRibbonControl control, bool pressed)
  2.         {
  3.             object context = control.Context;
  4.             if (context != null)
  5.             {
  6.                 var explorer = context as Explorer;
  7.                 if (explorer != null)
  8.                 {
  9.                     var currView = explorer.CurrentView;
  10.  
  11.                 }
  12.             }
  13.             else
  14.                 MessageBox.Show("context == null");
  15.             Marshal.ReleaseComObject(context);
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement