Changeset 3736


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

Added about dialog. #893

Location:
trunk/sources
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj

    r3702 r3736  
    8888    <Compile Include="FileManager.cs" />
    8989    <Compile Include="MenuItems\ClipboardMenuItem.cs" />
     90    <Compile Include="MenuItems\AboutMenuItem.cs" />
    9091    <Compile Include="MenuItems\CopyToClipboardMenuItem.cs" />
    9192    <Compile Include="MenuItems\StartPageMenuItem.cs" />
  • trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj

    r3721 r3736  
    239239    <Compile Include="Resources.Designer.cs" />
    240240    <Compile Include="Sandboxing\SandboxManager.cs" />
     241    <Compile Include="Starter\AboutDialog.cs">
     242      <SubType>Form</SubType>
     243    </Compile>
     244    <Compile Include="Starter\AboutDialog.Designer.cs">
     245      <DependentUpon>AboutDialog.cs</DependentUpon>
     246    </Compile>
    241247    <Compile Include="Starter\SplashScreen.cs">
    242248      <SubType>Form</SubType>
     
    301307      <LastGenOutput>Resources1.Designer.cs</LastGenOutput>
    302308    </EmbeddedResource>
    303     <None Include="Resources\VS2008ImageLibrary_Actions_Delete.png" />
     309    <EmbeddedResource Include="Starter\AboutDialog.resx">
     310      <DependentUpon>AboutDialog.cs</DependentUpon>
     311    </EmbeddedResource>
    304312    <None Include="Resources\VS2008ImageLibrary_CommonElements_Actions_Remove.png" />
    305313    <None Include="Resources\show_icons.png" />
  • 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.