Changeset 2334 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 09/04/09 15:35:28 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs
r2305 r2334 25 25 using System.Text; 26 26 using System.Drawing; 27 using System.Windows.Forms; 27 28 28 29 namespace HeuristicLab.MainForm { … … 30 31 string Title { get; set; } 31 32 string StatusStripText { get; set; } 33 bool StatusStripProgressBarVisible { get; set; } 34 32 35 Icon Icon { get; set; } 33 36 -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.Designer.cs
r2268 r2334 27 27 this.toolStrip = new System.Windows.Forms.ToolStrip(); 28 28 this.statusStrip = new System.Windows.Forms.StatusStrip(); 29 this.statusStripLabel = new System.Windows.Forms.ToolStripStatusLabel(); 29 this.toolStripProgressBar = new System.Windows.Forms.ToolStripProgressBar(); 30 this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); 30 31 this.statusStrip.SuspendLayout(); 31 32 this.SuspendLayout(); … … 49 50 // 50 51 this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 51 this.statusStripLabel}); 52 this.toolStripProgressBar, 53 this.toolStripStatusLabel}); 52 54 this.statusStrip.Location = new System.Drawing.Point(0, 390); 53 55 this.statusStrip.Name = "statusStrip"; … … 56 58 this.statusStrip.Text = "statusStrip"; 57 59 // 58 // statusStripLabel60 // toolStripProgressBar 59 61 // 60 this.statusStripLabel.Name = "statusStripLabel"; 61 this.statusStripLabel.Size = new System.Drawing.Size(0, 17); 62 this.toolStripProgressBar.Name = "toolStripProgressBar"; 63 this.toolStripProgressBar.Size = new System.Drawing.Size(100, 16); 64 this.toolStripProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; 65 this.toolStripProgressBar.Visible = false; 66 // 67 // toolStripStatusLabel 68 // 69 this.toolStripStatusLabel.Name = "toolStripStatusLabel"; 70 this.toolStripStatusLabel.Size = new System.Drawing.Size(112, 17); 71 this.toolStripStatusLabel.Text = "toolStripStatusLabel"; 62 72 // 63 73 // MainFormBase … … 82 92 private System.Windows.Forms.ToolStrip toolStrip; 83 93 private System.Windows.Forms.StatusStrip statusStrip; 84 private System.Windows.Forms.ToolStripStatusLabel statusStripLabel;85 94 protected System.Windows.Forms.MenuStrip menuStrip; 95 private System.Windows.Forms.ToolStripProgressBar toolStripProgressBar; 96 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel; 86 97 } 87 98 } -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2309 r2334 38 38 views = new List<IView>(); 39 39 toolStripItems = new List<IToolStripItem>(); 40 this.StatusStripText = ""; 40 41 } 41 42 … … 61 62 62 63 public string StatusStripText { 63 get { return this. statusStripLabel.Text; }64 get { return this.toolStripStatusLabel.Text; } 64 65 set { 65 66 if (InvokeRequired) { … … 67 68 Invoke(action, new object[] { value }); 68 69 } else 69 this.statusStripLabel.Text = value; 70 this.toolStripStatusLabel.Text = value; 71 } 72 } 73 74 public bool StatusStripProgressBarVisible { 75 get { return this.toolStripProgressBar.Visible; } 76 set { 77 if (InvokeRequired) { 78 Action<bool> action = delegate(bool b) { this.toolStripProgressBar.Visible = b; }; 79 Invoke(action, new object[] { value }); 80 } else 81 this.toolStripProgressBar.Visible = value; 70 82 } 71 83 }
Note: See TracChangeset
for help on using the changeset viewer.