Last change
on this file since 3015 was
2922,
checked in by gkronber, 14 years ago
|
Worked on GUI for plugin management. #891 (Refactor GUI for plugin management)
|
File size:
1.3 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.MainForm.WindowsForms;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.DeploymentService.AdminClient {
|
---|
8 | class MainForm : DockingMainForm {
|
---|
9 | private System.Windows.Forms.ToolStripProgressBar progressBar;
|
---|
10 |
|
---|
11 | public MainForm(Type type)
|
---|
12 | : base(type) {
|
---|
13 | InitializeComponent();
|
---|
14 | }
|
---|
15 |
|
---|
16 | protected override void OnInitialized(EventArgs e) {
|
---|
17 | base.OnInitialized(e);
|
---|
18 | (new PluginListView()).Show();
|
---|
19 | }
|
---|
20 |
|
---|
21 | private void InitializeComponent() {
|
---|
22 | this.SuspendLayout();
|
---|
23 |
|
---|
24 | progressBar = new System.Windows.Forms.ToolStripProgressBar();
|
---|
25 | progressBar.MarqueeAnimationSpeed = 30;
|
---|
26 | progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
|
---|
27 | progressBar.Visible = false;
|
---|
28 | statusStrip.Items.Add(progressBar);
|
---|
29 | //
|
---|
30 | // MainForm
|
---|
31 | //
|
---|
32 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
---|
33 | this.ClientSize = new System.Drawing.Size(770, 550);
|
---|
34 | this.Name = "MainForm";
|
---|
35 | this.ResumeLayout(false);
|
---|
36 | this.PerformLayout();
|
---|
37 | }
|
---|
38 |
|
---|
39 | public void ShowProgressBar() {
|
---|
40 | progressBar.Visible = true;
|
---|
41 | }
|
---|
42 |
|
---|
43 | public void HideProgressBar() {
|
---|
44 | progressBar.Visible = false;
|
---|
45 | }
|
---|
46 | }
|
---|
47 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.