Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2711 for trunk


Ignore:
Timestamp:
01/28/10 23:46:26 (15 years ago)
Author:
mkommend
Message:

added View.IsShown property (ticket #857)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs

    r2704 r2711  
    3535      InitializeComponent();
    3636      this.initialized = false;
     37      this.isShown = false;
    3738      this.closeReason = CloseReason.None;
    3839    }
     
    5253        }
    5354      }
     55    }
     56
     57    private bool isShown;
     58    public bool IsShown {
     59      get { return this.isShown; }
    5460    }
    5561
     
    101107
    102108    protected virtual void OnShown(ViewShownEventArgs e) {
     109      this.isShown = true;
    103110    }
    104111
    105112    protected virtual void OnHidden(EventArgs e) {
     113      this.isShown = false;
    106114    }
    107115
     
    132140
    133141    protected virtual void OnClosed(FormClosedEventArgs e) {
     142      this.isShown = false;
    134143    }
    135144
  • trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IView.cs

    r2696 r2711  
    2828  public interface IView {
    2929
     30    bool IsShown { get; }
    3031    string Caption { get; set; }
    3132    event EventHandler CaptionChanged;
Note: See TracChangeset for help on using the changeset viewer.