Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/10 11:22:48 (15 years ago)
Author:
gkronber
Message:

Added about dialog. #893

Location:
trunk/sources/HeuristicLab.PluginInfrastructure/Starter
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.Designer.cs

    r3732 r3736  
    5959      this.showLargeIconsButton = new System.Windows.Forms.RadioButton();
    6060      this.showDetailsButton = new System.Windows.Forms.RadioButton();
     61      this.aboutButton = new System.Windows.Forms.Button();
    6162      this.SuspendLayout();
    6263      //
     
    6566      this.startButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    6667      this.startButton.Enabled = false;
    67       this.startButton.Location = new System.Drawing.Point(579, 511);
     68      this.startButton.Location = new System.Drawing.Point(498, 511);
    6869      this.startButton.Name = "startButton";
    6970      this.startButton.Size = new System.Drawing.Size(75, 23);
     
    7374      this.startButton.UseVisualStyleBackColor = true;
    7475      this.startButton.Click += new System.EventHandler(this.applicationsListView_ItemActivate);
    75       //
    76       // largeImageList
    77       //
    78       this.largeImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("largeImageList.ImageStream")));
    79       this.largeImageList.TransparentColor = System.Drawing.Color.Transparent;
    80       this.largeImageList.Images.SetKeyName(0, "HeuristicLab.ico");
    8176      //
    8277      // applicationsListView
     
    122117      this.descriptionColumnHeader.Width = 453;
    123118      //
    124       // smallImageList
    125       //
    126       this.smallImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("smallImageList.ImageStream")));
    127       this.smallImageList.TransparentColor = System.Drawing.Color.Transparent;
    128       this.smallImageList.Images.SetKeyName(0, "HeuristicLab.ico");
    129       //
    130119      // showLargeIconsButton
    131120      //
     
    156145      this.showDetailsButton.Click += new System.EventHandler(this.detailsButton_Click);
    157146      //
     147      // aboutButton
     148      //
     149      this.aboutButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     150      this.aboutButton.Location = new System.Drawing.Point(579, 511);
     151      this.aboutButton.Name = "aboutButton";
     152      this.aboutButton.Size = new System.Drawing.Size(75, 23);
     153      this.aboutButton.TabIndex = 4;
     154      this.aboutButton.Text = "&About...";
     155      this.aboutButton.UseVisualStyleBackColor = true;
     156      this.aboutButton.Click += new System.EventHandler(this.aboutButton_Click);
     157      //
    158158      // StarterForm
    159159      //
     
    161161      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    162162      this.ClientSize = new System.Drawing.Size(666, 546);
     163      this.Controls.Add(this.aboutButton);
    163164      this.Controls.Add(this.showDetailsButton);
    164165      this.Controls.Add(this.showLargeIconsButton);
     
    185186    private System.Windows.Forms.RadioButton showLargeIconsButton;
    186187    private System.Windows.Forms.RadioButton showDetailsButton;
     188    private System.Windows.Forms.Button aboutButton;
    187189  }
    188190}
  • trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.cs

    r3697 r3736  
    6060      pluginManager = new PluginManager(pluginPath);
    6161      splashScreen = new SplashScreen(pluginManager, 1000);
    62       splashScreen.Show(this,"Loading HeuristicLab...");
     62      splashScreen.Show(this, "Loading HeuristicLab...");
    6363
    6464      pluginManager.DiscoverAndCheckPlugins();
    65 
    6665      UpdateApplicationsList();
    6766    }
     
    202201    }
    203202
     203    private void aboutButton_Click(object sender, EventArgs e) {
     204      List<IPluginDescription> plugins = new List<IPluginDescription>(pluginManager.Plugins.OfType<IPluginDescription>());
     205      var dialog = new AboutDialog(plugins);
     206      dialog.ShowDialog();
     207    }
    204208  }
    205209}
Note: See TracChangeset for help on using the changeset viewer.