private void OnRefreshSchemesCache(object sender, EventArgs e)
 {
     // Refreshing can take some time, so let us ask first...
     if (VsMessageBox.ShowQuestionMessageBox("Refresh All Studio Styles?",
                                             "Do you really want to refresh all Studio Styles?",
                                             OLEMSGBUTTON.OLEMSGBUTTON_YESNO, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_SECOND) == VsMessageResult.Yes)
     {
         Model.RefreshCache();
     }
 }
Ejemplo n.º 2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Displays the message in a Visual Studio message box.
 /// </summary>
 /// <param name="package">Package the action is used from</param>
 /// <param name="id">Command ID activating the action.</param>
 // --------------------------------------------------------------------------------------------
 public override void ExecuteAction(PackageBase package, CommandID id)
 {
     VsMessageBox.Show(_Text, _Title, _Buttons, _Icon, _DefaultButton);
 }