Changeset 2458 for trunk/sources/HeuristicLab.MainForm/3.2/Interfaces
- Timestamp:
- 10/30/09 17:17:53 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2/Interfaces
- Files:
-
- 4 deleted
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs
r2350 r2458 25 25 using System.Text; 26 26 using System.Drawing; 27 using System.Windows.Forms;28 27 29 28 namespace HeuristicLab.MainForm { 30 29 public interface IMainForm { 31 30 string Title { get; set; } 32 string StatusStripText { get; set; }33 bool StatusStripProgressBarVisible { get; set; }34 35 Cursor Cursor { get; set; }36 31 37 32 IView ActiveView { get; } 38 33 event EventHandler ActiveViewChanged; 39 event EventHandler MainFormChanged;34 event EventHandler Changed; 40 35 IEnumerable<IView> Views { get; } 41 36 42 37 Type UserInterfaceItemType { get; } 43 void ShowView(IView view); 38 bool ShowView(IView view); //return value indicates if a new form for the view is created 39 void HideView(IView view); 44 40 void CloseView(IView view); 45 41 void CloseAllViews(); -
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IView.cs
r2266 r2458 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using System. Windows.Forms;25 using System.ComponentModel; 26 26 27 27 namespace HeuristicLab.MainForm { … … 29 29 string Caption { get; set; } 30 30 event EventHandler CaptionChanged; 31 event EventHandler StateChanged; 32 IMainForm MainForm { get; set; } 33 void FormClosing(object sender, FormClosingEventArgs e); 31 event EventHandler Changed; 32 void OnClosing(object sender, CancelEventArgs e); 33 void OnClosed(object sender, EventArgs e); 34 } 35 36 public interface IView<T> : IView { 37 void View(T item); 38 T Item { get; } 34 39 } 35 40 }
Note: See TracChangeset
for help on using the changeset viewer.