コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e)
 {
     if (_commandsChangedHandler != null)
     {
         _commandsChangedHandler(this, e);
     }
 }
コード例 #2
0
 protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e)
 {
     if (MenuCommandsChanged != null)
     {
         MenuCommandsChanged(this, e);
     }
 }
コード例 #3
0
        /// <include file='doc\OleMenuCommandService.uex' path='docs/doc[@for="OleMenuCommandService.OnCommandChanged"]/*' />
        /// <devdoc>
        ///     This is called by a menu command when it's status has changed.
        /// </devdoc>
        protected override void OnCommandsChanged(MenuCommandsChangedEventArgs e)
        {
            base.OnCommandsChanged(e);

            if (0 == _queryStatusCount) {
                // UpdateCommandUI(0) can not be called inside QueryStatus because this will cause an infinite
                // sequence of calls to QueryStatus during idle time.
                IVsUIShell uiShellSvc = GetService(typeof(SVsUIShell)) as IVsUIShell;
                if (uiShellSvc != null) {
                    NativeMethods.ThrowOnFailure(uiShellSvc.UpdateCommandUI(0));
                }
            }
        }
コード例 #4
0
 protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e)
 {
     throw null;
 }
コード例 #5
0
ファイル: MenuCommandService.cs プロジェクト: Profit0004/mono
		protected virtual void OnCommandsChanged (MenuCommandsChangedEventArgs e)
		{
			if (MenuCommandsChanged != null)
				MenuCommandsChanged (this, e);
		}
コード例 #6
0
 protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e)
 {
     if (this._commandsChangedHandler != null)
     {
         this._commandsChangedHandler(this, e);
     }
 }