Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.PluginAdministrator/3.3/MainForm.cs @ 3200

Last change on this file since 3200 was 3179, checked in by gkronber, 14 years ago

Improved controls for deployment service interaction.
Increased max values for message sizes and related limits in the deployment service configuration.
Recreated proxy classes for the deployment service.

#891 (Refactor GUI for plugin management)

File size: 2.5 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.Linq;
25using System.Text;
26using HeuristicLab.MainForm.WindowsForms;
27
28namespace HeuristicLab.PluginAdministrator {
29  internal class MainForm : DockingMainForm {
30    private System.Windows.Forms.ToolStripProgressBar progressBar;
31    private System.Windows.Forms.ToolStripLabel statusLabel;
32    public MainForm(Type type)
33      : base(type) {
34      InitializeComponent();
35    }
36
37    protected override void OnInitialized(EventArgs e) {
38      base.OnInitialized(e);
39      (new PluginEditor()).Show();
40    }
41
42    private void InitializeComponent() {
43      this.progressBar = new System.Windows.Forms.ToolStripProgressBar();
44      this.statusLabel = new System.Windows.Forms.ToolStripLabel();
45      this.SuspendLayout();
46      //
47      // progressBar
48      //
49      this.progressBar.MarqueeAnimationSpeed = 30;
50      this.progressBar.Name = "progressBar";
51      this.progressBar.Size = new System.Drawing.Size(100, 16);
52      this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
53      this.progressBar.Visible = false;
54
55      this.statusLabel.Name = "statusLabel";
56      this.statusLabel.Visible = true;
57      //
58      // MainForm
59      //
60      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
61      this.ClientSize = new System.Drawing.Size(770, 550);
62      this.Name = "MainForm";
63      this.ResumeLayout(false);
64      this.PerformLayout();
65
66    }
67
68    public void ShowProgressBar() {
69      progressBar.Visible = true;
70    }
71
72    public void HideProgressBar() {
73      progressBar.Visible = false;
74    }
75
76    public void SetStatusBarText(string msg) {
77      statusLabel.Text = msg;
78    }
79  }
80}
Note: See TracBrowser for help on using the repository browser.