コード例 #1
0
 /// <summary>
 /// 移除便签
 /// </summary>
 /// <param name="window"></param>
 public static void RemoveNotepad(WindowNotepad window)
 {
     if (WindowList.Contains(window))
     {
         WindowList.Remove(window);
     }
 }
コード例 #2
0
 private void PaneUpdated(OutputWindowPane pane)
 {
     if (!WindowList.Contains(pane.Name))
     {
         WindowList.Add(pane.Name);
         if (string.IsNullOrEmpty(CurrentWindow))
         {
             CurrentWindow = pane.Name;
         }
     }
     if (!_windowNames.ContainsKey(pane.Name))
     {
         _windowNames.Add(pane.Name, pane.Guid);
     }
     // See [IDE GUID](https://docs.microsoft.com/en-us/visualstudio/extensibility/ide-guids?view=vs-2017 )
     PorcessNewInput(pane);
     UpdateOutput();
 }