Changeset 3069 for trunk/sources
- Timestamp:
- 03/16/10 17:59:05 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/ConnectionSetupView.cs
r3068 r3069 47 47 form = new Form(); 48 48 form.Name = this.Name; 49 form. Size = this.Size;49 form.ClientSize = Size; 50 50 this.Dock = DockStyle.Fill; 51 51 form.Controls.Add(this); 52 } 52 } 53 53 form.Show(); 54 54 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerControl.cs
r3006 r3069 16 16 internal virtual void ShowInForm() { 17 17 Form form = new Form(); 18 form. Size = this.Size;18 form.ClientSize = this.Size; 19 19 form.Text = this.Name; 20 20 this.Dock = DockStyle.Fill; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.cs
r3006 r3069 256 256 private bool ConfirmRemoveAction(IEnumerable<IPluginDescription> plugins) { 257 257 StringBuilder strBuilder = new StringBuilder(); 258 strBuilder.AppendLine("Delete files:");259 258 foreach (var plugin in plugins) { 260 259 foreach (var file in plugin.Files) { 261 strBuilder.AppendLine( file.ToString());260 strBuilder.AppendLine(Path.GetFileName(file.Name)); 262 261 } 263 262 } 264 return MessageBox.Show(strBuilder.ToString(), "Confirm Delete", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK;263 return (new ConfirmationDialog("Confirm Delete", "Do you want to delete following files?", strBuilder.ToString())).ShowDialog() == DialogResult.OK; 265 264 } 266 265 267 266 private bool ConfirmUpdateAction(IEnumerable<IPluginDescription> plugins) { 268 267 StringBuilder strBuilder = new StringBuilder(); 269 strBuilder.AppendLine("Update plugins:");270 268 foreach (var plugin in plugins) { 271 269 strBuilder.AppendLine(plugin.ToString()); 272 270 } 273 return MessageBox.Show(strBuilder.ToString(), "Confirm Update", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK;271 return (new ConfirmationDialog("Confirm Update", "Do you want to update following plugins?", strBuilder.ToString())).ShowDialog() == DialogResult.OK; 274 272 } 275 273 -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.Designer.cs
r3009 r3069 30 30 this.label1 = new System.Windows.Forms.Label(); 31 31 this.radioButtonGroupBox = new System.Windows.Forms.GroupBox(); 32 this.rejectRadioButton = new System.Windows.Forms.RadioButton(); 32 33 this.acceptRadioButton = new System.Windows.Forms.RadioButton(); 33 this. rejectRadioButton = new System.Windows.Forms.RadioButton();34 this.panel1 = new System.Windows.Forms.Panel(); 34 35 this.radioButtonGroupBox.SuspendLayout(); 36 this.panel1.SuspendLayout(); 35 37 this.SuspendLayout(); 36 38 // … … 40 42 | System.Windows.Forms.AnchorStyles.Left) 41 43 | System.Windows.Forms.AnchorStyles.Right))); 44 this.richTextBox.BackColor = System.Drawing.SystemColors.HighlightText; 42 45 this.richTextBox.Location = new System.Drawing.Point(12, 48); 43 46 this.richTextBox.Name = "richTextBox"; 44 47 this.richTextBox.ReadOnly = true; 45 this.richTextBox.Size = new System.Drawing.Size(494, 2 61);48 this.richTextBox.Size = new System.Drawing.Size(494, 287); 46 49 this.richTextBox.TabIndex = 0; 47 50 this.richTextBox.Text = ""; … … 51 54 this.acceptButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 52 55 this.acceptButton.Enabled = false; 53 this.acceptButton.Location = new System.Drawing.Point(34 6, 394);56 this.acceptButton.Location = new System.Drawing.Point(347, 53); 54 57 this.acceptButton.Name = "acceptButton"; 55 58 this.acceptButton.Size = new System.Drawing.Size(75, 23); … … 62 65 // 63 66 this.rejectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 64 this.rejectButton.Location = new System.Drawing.Point(42 7, 394);67 this.rejectButton.Location = new System.Drawing.Point(428, 53); 65 68 this.rejectButton.Name = "rejectButton"; 66 69 this.rejectButton.Size = new System.Drawing.Size(79, 23); … … 94 97 this.radioButtonGroupBox.Controls.Add(this.rejectRadioButton); 95 98 this.radioButtonGroupBox.Controls.Add(this.acceptRadioButton); 96 this.radioButtonGroupBox.Location = new System.Drawing.Point(1 2, 315);99 this.radioButtonGroupBox.Location = new System.Drawing.Point(13, 5); 97 100 this.radioButtonGroupBox.Name = "radioButtonGroupBox"; 98 101 this.radioButtonGroupBox.Size = new System.Drawing.Size(281, 71); 99 102 this.radioButtonGroupBox.TabIndex = 5; 100 103 this.radioButtonGroupBox.TabStop = false; 104 // 105 // rejectRadioButton 106 // 107 this.rejectRadioButton.AutoSize = true; 108 this.rejectRadioButton.Location = new System.Drawing.Point(6, 42); 109 this.rejectRadioButton.Name = "rejectRadioButton"; 110 this.rejectRadioButton.Size = new System.Drawing.Size(264, 17); 111 this.rejectRadioButton.TabIndex = 1; 112 this.rejectRadioButton.TabStop = true; 113 this.rejectRadioButton.Text = "I do not accept the terms in the license agreement."; 114 this.rejectRadioButton.UseVisualStyleBackColor = true; 115 this.rejectRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); 101 116 // 102 117 // acceptRadioButton … … 112 127 this.acceptRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); 113 128 // 114 // rejectRadioButton129 // panel1 115 130 // 116 this.rejectRadioButton.AutoSize = true; 117 this.rejectRadioButton.Location = new System.Drawing.Point(6, 42); 118 this.rejectRadioButton.Name = "rejectRadioButton"; 119 this.rejectRadioButton.Size = new System.Drawing.Size(264, 17); 120 this.rejectRadioButton.TabIndex = 1; 121 this.rejectRadioButton.TabStop = true; 122 this.rejectRadioButton.Text = "I do not accept the terms in the license agreement."; 123 this.rejectRadioButton.UseVisualStyleBackColor = true; 124 this.rejectRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); 131 this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 132 | System.Windows.Forms.AnchorStyles.Right))); 133 this.panel1.BackColor = System.Drawing.SystemColors.Control; 134 this.panel1.Controls.Add(this.acceptButton); 135 this.panel1.Controls.Add(this.radioButtonGroupBox); 136 this.panel1.Controls.Add(this.rejectButton); 137 this.panel1.Location = new System.Drawing.Point(-1, 341); 138 this.panel1.Name = "panel1"; 139 this.panel1.Size = new System.Drawing.Size(520, 88); 140 this.panel1.TabIndex = 6; 125 141 // 126 142 // LicenseConfirmationBox … … 128 144 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 129 145 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 146 this.BackColor = System.Drawing.SystemColors.HighlightText; 130 147 this.ClientSize = new System.Drawing.Size(518, 429); 131 this.Controls.Add(this. radioButtonGroupBox);148 this.Controls.Add(this.panel1); 132 149 this.Controls.Add(this.label1); 133 150 this.Controls.Add(this.licenseLabel); 134 this.Controls.Add(this.rejectButton);135 this.Controls.Add(this.acceptButton);136 151 this.Controls.Add(this.richTextBox); 137 152 this.Name = "LicenseConfirmationBox"; 138 153 this.radioButtonGroupBox.ResumeLayout(false); 139 154 this.radioButtonGroupBox.PerformLayout(); 155 this.panel1.ResumeLayout(false); 140 156 this.ResumeLayout(false); 141 157 this.PerformLayout(); … … 153 169 private System.Windows.Forms.RadioButton rejectRadioButton; 154 170 private System.Windows.Forms.RadioButton acceptRadioButton; 171 private System.Windows.Forms.Panel panel1; 155 172 } 156 173 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/RemotePluginInstaller.Designer.cs
r3068 r3069 72 72 // 73 73 this.nameHeader.Text = "Name"; 74 this.nameHeader.Width = 1 15;74 this.nameHeader.Width = 185; 75 75 // 76 76 // versionHeader 77 77 // 78 78 this.versionHeader.Text = "Version"; 79 this.versionHeader.Width = 161;79 this.versionHeader.Width = 93; 80 80 // 81 81 // descriptionHeader -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r3068 r3069 93 93 </ItemGroup> 94 94 <ItemGroup> 95 <Compile Include="Advanced\ConfirmationDialog.cs"> 96 <SubType>Form</SubType> 97 </Compile> 98 <Compile Include="Advanced\ConfirmationDialog.Designer.cs"> 99 <DependentUpon>ConfirmationDialog.cs</DependentUpon> 100 </Compile> 95 101 <Compile Include="Advanced\ConnectionSetupView.cs"> 96 102 <SubType>UserControl</SubType> … … 259 265 <Content Include="Resources\List.gif" /> 260 266 <Content Include="Resources\Logo_white.gif" /> 267 <EmbeddedResource Include="Advanced\ConfirmationDialog.resx"> 268 <DependentUpon>ConfirmationDialog.cs</DependentUpon> 269 </EmbeddedResource> 261 270 <EmbeddedResource Include="Advanced\ConnectionSetupView.resx"> 262 271 <DependentUpon>ConnectionSetupView.cs</DependentUpon>
Note: See TracChangeset
for help on using the changeset viewer.