コード例 #1
0
ファイル: MenuItem.cs プロジェクト: jenrom/LogSpy
 public MenuItem(string displayText, MenuItemName name)
 {
     if (displayText == null) throw new ArgumentNullException("displayText");
     DisplayText = displayText;
     Name = name;
     Command = new DisabledCommand();
 }
コード例 #2
0
ファイル: ToolWindowBase.cs プロジェクト: weiplanet/DaxStudio
 protected ToolWindowBase()
 {
     CanCloseWindow        = true;
     CanHide               = false;
     AutoHideMinHeight     = 100;
     DockAsDocumentCommand = new DisabledCommand();
     NotifyOfPropertyChange(() => DockAsDocumentCommand);
     ViewAttached += ToolWindowBase_ViewAttached;
 }
コード例 #3
0
 public ToolWindowBase()
 {
     CanCloseWindow        = true;
     CanHide               = false;
     AutoHideMinHeight     = 100;
     DefaultDockingPane    = "DockBottom";
     DockAsDocumentCommand = new DisabledCommand();
     NotifyOfPropertyChange(() => DockAsDocumentCommand);
     ViewAttached += ToolWindowBase_ViewAttached;
 }