/// <summary> /// /// </summary> protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e) { if (_commandsChangedHandler != null) { _commandsChangedHandler(this, e); } }
protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e) { if (MenuCommandsChanged != null) { MenuCommandsChanged(this, e); } }
/// <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)); } } }
protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e) { throw null; }
protected virtual void OnCommandsChanged (MenuCommandsChangedEventArgs e) { if (MenuCommandsChanged != null) MenuCommandsChanged (this, e); }
protected virtual void OnCommandsChanged(MenuCommandsChangedEventArgs e) { if (this._commandsChangedHandler != null) { this._commandsChangedHandler(this, e); } }