Changeset 2704
- Timestamp:
- 01/28/10 19:57:39 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/HeuristicLab.MainForm.WindowsForms-3.2.csproj
r2696 r2704 82 82 </ItemGroup> 83 83 <ItemGroup> 84 <Compile Include="ActionUserInterfaceItem.cs" /> 84 85 <Compile Include="ContentView.cs"> 85 86 <SubType>UserControl</SubType> -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainForm.cs
r2703 r2704 192 192 } 193 193 194 internal void ShowView(IView view, bool firstTimeShown) {195 if (InvokeRequired) Invoke((Action<IView, bool>)ShowView, view, firstTimeShown);194 internal void ShowView(IView view, bool firstTimeShown) { 195 if (InvokeRequired) Invoke((Action<IView, bool>)ShowView, view, firstTimeShown); 196 196 else { 197 197 if (firstTimeShown) { … … 347 347 toolStripItem.Image = userInterfaceItem.Image; 348 348 toolStripItem.Click += new EventHandler(ToolStripItemClicked); 349 if (userInterfaceItem is ActionUserInterfaceItem) 350 ((ActionUserInterfaceItem)userInterfaceItem).OnToolStripItemSet(new EventArgs()); 349 351 this.userInterfaceItems.Add(userInterfaceItem); 350 352 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MenuItem.cs
r2696 r2704 26 26 27 27 namespace HeuristicLab.MainForm.WindowsForms { 28 public abstract class MenuItem : HeuristicLab.MainForm.MenuItem{28 public abstract class MenuItem : ActionUserInterfaceItem,IMenuItem{ 29 29 public virtual Keys ShortCutKeys { 30 30 get { return Keys.None; } 31 31 } 32 33 private ToolStripItem toolStripItem;34 public virtual ToolStripItem ToolStripItem {35 get { return this.toolStripItem; }36 internal set { this.toolStripItem = value; }37 }38 39 public virtual ToolStripItemDisplayStyle ToolStripItemDisplayStyle {40 get { return ToolStripItemDisplayStyle.ImageAndText; }41 }42 32 } 43 33 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ToolBarItem.cs
r2696 r2704 27 27 28 28 namespace HeuristicLab.MainForm.WindowsForms { 29 public abstract class ToolBarItem : HeuristicLab.MainForm.ToolBarItem { 30 private ToolStripItem toolStripItem; 31 public virtual ToolStripItem ToolStripItem { 32 get { return this.toolStripItem; } 33 internal set { this.toolStripItem = value; } 34 } 35 29 public abstract class ToolBarItem : ActionUserInterfaceItem,IToolBarItem { 36 30 public virtual bool IsDropDownButton { 37 31 get { return false; } 38 32 } 39 40 public virtual ToolStripItemDisplayStyle ToolStripItemDisplayStyle {41 get { return ToolStripItemDisplayStyle.Image; }42 }43 33 } 44 34 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs
r2696 r2704 54 54 } 55 55 56 public void Show() {56 public new void Show() { 57 57 MainForm mainform = MainFormManager.GetMainForm<MainForm>(); 58 58 bool firstTimeShown = mainform.GetForm(this) == null; … … 81 81 } 82 82 83 public void Hide() {83 public new void Hide() { 84 84 MainFormManager.GetMainForm<MainForm>().HideView(this); 85 85 this.OnHidden(new EventArgs()); -
trunk/sources/HeuristicLab.MainForm/3.2/HeuristicLab.MainForm-3.2.csproj
r2696 r2704 93 93 <Compile Include="Interfaces\IToolBarItem.cs" /> 94 94 <Compile Include="MainFormManager.cs" /> 95 <Compile Include="MenuItem.cs" />96 95 <Compile Include="MenuSeparatorItem.cs" /> 97 <Compile Include="ToolBarItem.cs" />98 96 <Compile Include="HeuristicLabMainFormPlugin.cs" /> 99 97 <Compile Include="Interfaces\IMainForm.cs" />
Note: See TracChangeset
for help on using the changeset viewer.