Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/09 17:17:53 (15 years ago)
Author:
mkommend
Message:

integrated branch MainForm refactoring into trunk (ticket #771)

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  
    2525using System.Text;
    2626using System.Drawing;
    27 using System.Windows.Forms;
    2827
    2928namespace HeuristicLab.MainForm {
    3029  public interface IMainForm {
    3130    string Title { get; set; }
    32     string StatusStripText { get; set; }
    33     bool StatusStripProgressBarVisible { get; set; }
    34 
    35     Cursor Cursor { get; set; }
    3631
    3732    IView ActiveView { get; }
    3833    event EventHandler ActiveViewChanged;
    39     event EventHandler MainFormChanged;
     34    event EventHandler Changed;
    4035    IEnumerable<IView> Views { get; }
    4136
    4237    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);
    4440    void CloseView(IView view);
    4541    void CloseAllViews();
  • trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IView.cs

    r2266 r2458  
    2323using System.Collections.Generic;
    2424using System.Text;
    25 using System.Windows.Forms;
     25using System.ComponentModel;
    2626
    2727namespace HeuristicLab.MainForm {
     
    2929    string Caption { get; set; }
    3030    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; }
    3439  }
    3540}
Note: See TracChangeset for help on using the changeset viewer.