Changeset 3752
- Timestamp:
- 05/10/10 18:15:09 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 1 added
- 15 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/ConfirmationDialog.cs
r3090 r3752 30 30 namespace HeuristicLab.PluginInfrastructure.Advanced { 31 31 internal partial class ConfirmationDialog : Form { 32 public ConfirmationDialog() {32 public ConfirmationDialog() : base() { 33 33 InitializeComponent(); 34 34 icon.Image = System.Drawing.SystemIcons.Exclamation.ToBitmap(); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.cs
r3627 r3752 37 37 private string pluginDir; 38 38 39 public InstallationManagerForm(PluginManager pluginManager) {39 public InstallationManagerForm(PluginManager pluginManager) : base() { 40 40 InitializeComponent(); 41 41 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); … … 143 143 #region button events 144 144 private void connectionSettingsToolStripMenuItem_Click(object sender, EventArgs e) { 145 new ConnectionSetupView().ShowDialog( );145 new ConnectionSetupView().ShowDialog(this); 146 146 } 147 147 private void tabControl_SelectedIndexChanged(object sender, EventArgs e) { … … 158 158 } 159 159 } 160 return (new ConfirmationDialog("Confirm Delete", "Do you want to delete following files?", strBuilder.ToString())).ShowDialog( ) == DialogResult.OK;160 return (new ConfirmationDialog("Confirm Delete", "Do you want to delete following files?", strBuilder.ToString())).ShowDialog(this) == DialogResult.OK; 161 161 } 162 162 … … 166 166 strBuilder.AppendLine(plugin.ToString()); 167 167 } 168 return (new ConfirmationDialog("Confirm Update", "Do you want to update following plugins?", strBuilder.ToString())).ShowDialog( ) == DialogResult.OK;168 return (new ConfirmationDialog("Confirm Update", "Do you want to update following plugins?", strBuilder.ToString())).ShowDialog(this) == DialogResult.OK; 169 169 } 170 170 … … 173 173 if (!string.IsNullOrEmpty(plugin.LicenseText)) { 174 174 var licenseConfirmationBox = new LicenseConfirmationDialog(plugin); 175 if (licenseConfirmationBox.ShowDialog( ) != DialogResult.OK)175 if (licenseConfirmationBox.ShowDialog(this) != DialogResult.OK) 176 176 return false; 177 177 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstalledPluginsView.cs
r3721 r3752 208 208 var plugin = (PluginDescription)localPluginsListView.SelectedItems[0].Tag; 209 209 PluginView pluginView = new PluginView(plugin); 210 pluginView.Show( );210 pluginView.Show(this); 211 211 } 212 212 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationDialog.Designer.cs
r3749 r3752 45 45 private void InitializeComponent() { 46 46 this.components = new System.ComponentModel.Container(); 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LicenseConfirmationDialog));48 47 this.richTextBox = new System.Windows.Forms.RichTextBox(); 49 48 this.acceptButton = new System.Windows.Forms.Button(); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationDialog.cs
r3627 r3752 30 30 namespace HeuristicLab.PluginInfrastructure.Advanced { 31 31 internal partial class LicenseConfirmationDialog : Form { 32 public LicenseConfirmationDialog() {32 public LicenseConfirmationDialog() : base() { 33 33 InitializeComponent(); 34 34 } 35 35 36 public LicenseConfirmationDialog(IPluginDescription plugin) {36 public LicenseConfirmationDialog(IPluginDescription plugin) : base() { 37 37 InitializeComponent(); 38 38 richTextBox.Text = plugin.LicenseText; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseView.cs
r3474 r3752 32 32 internal partial class LicenseView : Form { 33 33 34 public LicenseView() {34 public LicenseView() : base() { 35 35 InitializeComponent(); 36 36 Name = "License"; 37 37 } 38 38 39 public LicenseView(IPluginDescription plugin) {39 public LicenseView(IPluginDescription plugin) : base() { 40 40 InitializeComponent(); 41 41 Name = "License of: " + plugin; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginView.Designer.cs
r3749 r3752 45 45 private void InitializeComponent() { 46 46 this.components = new System.ComponentModel.Container(); 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PluginView));48 47 this.nameLabel = new System.Windows.Forms.Label(); 49 48 this.nameTextBox = new System.Windows.Forms.TextBox(); … … 316 315 this.Controls.Add(this.nameTextBox); 317 316 this.Controls.Add(this.nameLabel); 318 this.Icon = HeuristicLab.PluginInfrastructure.Resources.HeuristicLab;317 this.Icon = global::HeuristicLab.PluginInfrastructure.Resources.HeuristicLab; 319 318 this.Name = "PluginView"; 319 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 320 320 this.dependenciesGroupBox.ResumeLayout(false); 321 321 this.filesGroupBox.ResumeLayout(false); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginView.cs
r3721 r3752 40 40 private IPluginDescription plugin; 41 41 42 public PluginView() {42 public PluginView() : base() { 43 43 InitializeComponent(); 44 44 PopulateImageList(); 45 45 } 46 46 47 public PluginView(IPluginDescription plugin) {47 public PluginView(IPluginDescription plugin) : base() { 48 48 InitializeComponent(); 49 49 PopulateImageList(); … … 114 114 var dep = (PluginDescription)dependenciesListView.SelectedItems[0].Tag; 115 115 PluginView view = new PluginView(dep); 116 view.Show( );116 view.Show(this); 117 117 } 118 118 } … … 120 120 private void showLicenseButton_Click(object sender, EventArgs e) { 121 121 LicenseView view = new LicenseView(plugin); 122 view.Show( );122 view.Show(this); 123 123 } 124 124 } -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r3749 r3752 216 216 <Compile Include="Main.cs" /> 217 217 <Compile Include="Properties\AssemblyInfo.cs" /> 218 <EmbeddedResource Include="Advanced\InstallationManagerForm.resx">219 <DependentUpon>InstallationManagerForm.cs</DependentUpon>220 </EmbeddedResource>221 <EmbeddedResource Include="Starter\SplashScreen.resx">222 <DependentUpon>SplashScreen.cs</DependentUpon>223 </EmbeddedResource>224 <EmbeddedResource Include="Starter\StarterForm.resx">225 <DependentUpon>StarterForm.cs</DependentUpon>226 </EmbeddedResource>227 218 <None Include="app.config" /> 228 219 <None Include="HeuristicLab.snk" /> … … 271 262 <Content Include="Resources\HeuristicLab.ico" /> 272 263 <Content Include="Resources\Logo_white.gif" /> 264 <None Include="Resources\VS2008ImageLibrary_Actions_Delete.png" /> 273 265 <Content Include="Resources\VS2008ImageLibrary_Actions_PublishToWebHS.png" /> 274 266 <Content Include="Resources\VS2008ImageLibrary_Actions_RepeatHS.png" /> 275 267 <Content Include="Resources\VS2008ImageLibrary_CommonElements_Actions_Add.png" /> 276 268 <Content Include="Resources\VS2008ImageLibrary_Objects_Plugin.png" /> 277 <EmbeddedResource Include="Advanced\AvailablePluginsView.resx">278 <DependentUpon>AvailablePluginsView.cs</DependentUpon>279 </EmbeddedResource>280 <EmbeddedResource Include="Advanced\BasicUpdateView.resx">281 <DependentUpon>BasicUpdateView.cs</DependentUpon>282 </EmbeddedResource>283 <EmbeddedResource Include="Advanced\ConfirmationDialog.resx">284 <DependentUpon>ConfirmationDialog.cs</DependentUpon>285 </EmbeddedResource>286 <EmbeddedResource Include="Advanced\ConnectionSetupView.resx">287 <DependentUpon>ConnectionSetupView.cs</DependentUpon>288 </EmbeddedResource>289 269 <EmbeddedResource Include="Advanced\DeploymentService\servdev.cer" /> 290 <EmbeddedResource Include="Advanced\EditProductsView.resx">291 <DependentUpon>EditProductsView.cs</DependentUpon>292 </EmbeddedResource>293 <EmbeddedResource Include="Advanced\InstalledPluginsView.resx">294 <DependentUpon>InstalledPluginsView.cs</DependentUpon>295 </EmbeddedResource>296 <EmbeddedResource Include="Advanced\LicenseConfirmationDialog.resx">297 <DependentUpon>LicenseConfirmationDialog.cs</DependentUpon>298 </EmbeddedResource>299 <EmbeddedResource Include="Advanced\LicenseView.resx">300 <DependentUpon>LicenseView.cs</DependentUpon>301 </EmbeddedResource>302 270 <EmbeddedResource Include="Advanced\PluginView.resx"> 303 271 <DependentUpon>PluginView.cs</DependentUpon> 304 </EmbeddedResource>305 <EmbeddedResource Include="Advanced\UploadPluginsView.resx">306 <DependentUpon>UploadPluginsView.cs</DependentUpon>307 272 </EmbeddedResource> 308 273 <EmbeddedResource Include="Resources.resx"> … … 310 275 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 311 276 <SubType>Designer</SubType> 312 </EmbeddedResource>313 <EmbeddedResource Include="Starter\AboutDialog.resx">314 <DependentUpon>AboutDialog.cs</DependentUpon>315 277 </EmbeddedResource> 316 278 <None Include="Resources\VS2008ImageLibrary_CommonElements_Actions_Remove.png" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/Properties/AssemblyInfo.frame
r3573 r3752 37 37 [assembly: AssemblyTrademark("")] 38 38 [assembly: AssemblyCulture("")] 39 [assembly: System.Resources.NeutralResourcesLanguage("en")]40 39 [assembly: CLSCompliant(true)] 41 40 -
trunk/sources/HeuristicLab.PluginInfrastructure/Resources.Designer.cs
r3749 r3752 82 82 } 83 83 84 /// <summary> 85 /// Looks up a localized string similar to . 86 /// </summary> 87 internal static string Bla { 88 get { 89 return ResourceManager.GetString("Bla", resourceCulture); 84 internal static System.Drawing.Bitmap Delete { 85 get { 86 object obj = ResourceManager.GetObject("Delete", resourceCulture); 87 return ((System.Drawing.Bitmap)(obj)); 90 88 } 91 89 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Resources.resx
r3749 r3752 128 128 <value>Resources\vs2008imagelibrary_objects_assembly.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 129 129 </data> 130 <data name=" Bla" xml:space="preserve">131 <value />130 <data name="Delete" type="System.Resources.ResXFileRef, System.Windows.Forms"> 131 <value>Resources\VS2008ImageLibrary_Actions_Delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 132 132 </data> 133 133 <data name="Document" type="System.Resources.ResXFileRef, System.Windows.Forms"> -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/AboutDialog.cs
r3742 r3752 103 103 if(pluginListView.SelectedItems.Count > 0) { 104 104 PluginView view = new PluginView((IPluginDescription)pluginListView.SelectedItems[0].Tag); 105 view.Show( );105 view.Show(this); 106 106 } 107 107 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/SplashScreen.Designer.cs
r3749 r3752 48 48 /// </summary> 49 49 private void InitializeComponent() { 50 this.components = new System.ComponentModel.Container();51 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreen));52 50 this.panel = new System.Windows.Forms.Panel(); 53 51 this.closeButton = new System.Windows.Forms.Button(); 54 this.imageList = new System.Windows.Forms.ImageList(this.components);55 52 this.companyLabel = new System.Windows.Forms.Label(); 56 53 this.userNameLabel = new System.Windows.Forms.Label(); … … 94 91 this.closeButton.ForeColor = System.Drawing.Color.White; 95 92 this.closeButton.ImageIndex = 0; 96 this.closeButton.ImageList = this.imageList;97 93 this.closeButton.Location = new System.Drawing.Point(604, 3); 98 94 this.closeButton.Name = "closeButton"; … … 101 97 this.closeButton.UseVisualStyleBackColor = true; 102 98 this.closeButton.Click += new System.EventHandler(this.closeButton_Click); 103 //104 // imageList105 //106 this.imageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.Remove);107 99 // 108 100 // companyLabel … … 214 206 ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); 215 207 this.ResumeLayout(false); 208 216 209 } 217 210 … … 227 220 private System.Windows.Forms.Label copyrightLabel; 228 221 private System.Windows.Forms.Label infoLabel; 229 private System.Windows.Forms.ImageList imageList;230 222 private System.Windows.Forms.Button closeButton; 231 223 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/SplashScreen.cs
r3697 r3752 46 46 this.manager = manager; 47 47 48 closeButton.Image = HeuristicLab.PluginInfrastructure.Resources.Delete; 48 49 manager.ApplicationStarted += new EventHandler<PluginInfrastructureEventArgs>(manager_ApplicationStarted); 49 50 manager.ApplicationStarting += new EventHandler<PluginInfrastructureEventArgs>(manager_ApplicationStarting);
Note: See TracChangeset
for help on using the changeset viewer.