Changeset 3009 for trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Timestamp:
- 03/12/10 09:52:05 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.Designer.cs
r3006 r3009 28 28 this.rejectButton = new System.Windows.Forms.Button(); 29 29 this.licenseLabel = new System.Windows.Forms.Label(); 30 this.label1 = new System.Windows.Forms.Label(); 31 this.radioButtonGroupBox = new System.Windows.Forms.GroupBox(); 32 this.acceptRadioButton = new System.Windows.Forms.RadioButton(); 33 this.rejectRadioButton = new System.Windows.Forms.RadioButton(); 34 this.radioButtonGroupBox.SuspendLayout(); 30 35 this.SuspendLayout(); 31 36 // … … 35 40 | System.Windows.Forms.AnchorStyles.Left) 36 41 | System.Windows.Forms.AnchorStyles.Right))); 37 this.richTextBox.Location = new System.Drawing.Point(12, 37);42 this.richTextBox.Location = new System.Drawing.Point(12, 48); 38 43 this.richTextBox.Name = "richTextBox"; 39 44 this.richTextBox.ReadOnly = true; 40 this.richTextBox.Size = new System.Drawing.Size(494, 351);45 this.richTextBox.Size = new System.Drawing.Size(494, 261); 41 46 this.richTextBox.TabIndex = 0; 42 47 this.richTextBox.Text = ""; … … 45 50 // 46 51 this.acceptButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 47 this.acceptButton.Location = new System.Drawing.Point(298, 394); 52 this.acceptButton.Enabled = false; 53 this.acceptButton.Location = new System.Drawing.Point(346, 394); 48 54 this.acceptButton.Name = "acceptButton"; 49 55 this.acceptButton.Size = new System.Drawing.Size(75, 23); 50 56 this.acceptButton.TabIndex = 1; 51 this.acceptButton.Text = " I Accept";57 this.acceptButton.Text = "Next >"; 52 58 this.acceptButton.UseVisualStyleBackColor = true; 53 59 this.acceptButton.Click += new System.EventHandler(this.acceptButton_Click); … … 56 62 // 57 63 this.rejectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 58 this.rejectButton.Location = new System.Drawing.Point( 379, 394);64 this.rejectButton.Location = new System.Drawing.Point(427, 394); 59 65 this.rejectButton.Name = "rejectButton"; 60 this.rejectButton.Size = new System.Drawing.Size( 127, 23);66 this.rejectButton.Size = new System.Drawing.Size(79, 23); 61 67 this.rejectButton.TabIndex = 2; 62 this.rejectButton.Text = "Cancel Installation";68 this.rejectButton.Text = "Cancel"; 63 69 this.rejectButton.UseVisualStyleBackColor = true; 64 70 this.rejectButton.Click += new System.EventHandler(this.rejectButton_Click); … … 67 73 // 68 74 this.licenseLabel.AutoSize = true; 69 this.licenseLabel.Location = new System.Drawing.Point(1 3, 13);75 this.licenseLabel.Location = new System.Drawing.Point(12, 32); 70 76 this.licenseLabel.Name = "licenseLabel"; 71 this.licenseLabel.Size = new System.Drawing.Size( 177, 13);77 this.licenseLabel.Size = new System.Drawing.Size(241, 13); 72 78 this.licenseLabel.TabIndex = 3; 73 this.licenseLabel.Text = "Please confirm license agreement of"; 79 this.licenseLabel.Text = "Please read following license agreement carefully."; 80 // 81 // label1 82 // 83 this.label1.AutoSize = true; 84 this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 85 this.label1.Location = new System.Drawing.Point(12, 9); 86 this.label1.Name = "label1"; 87 this.label1.Size = new System.Drawing.Size(115, 13); 88 this.label1.TabIndex = 4; 89 this.label1.Text = "License Agreement"; 90 // 91 // radioButtonGroupBox 92 // 93 this.radioButtonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 94 this.radioButtonGroupBox.Controls.Add(this.rejectRadioButton); 95 this.radioButtonGroupBox.Controls.Add(this.acceptRadioButton); 96 this.radioButtonGroupBox.Location = new System.Drawing.Point(12, 315); 97 this.radioButtonGroupBox.Name = "radioButtonGroupBox"; 98 this.radioButtonGroupBox.Size = new System.Drawing.Size(281, 71); 99 this.radioButtonGroupBox.TabIndex = 5; 100 this.radioButtonGroupBox.TabStop = false; 101 // 102 // acceptRadioButton 103 // 104 this.acceptRadioButton.AutoSize = true; 105 this.acceptRadioButton.Location = new System.Drawing.Point(6, 19); 106 this.acceptRadioButton.Name = "acceptRadioButton"; 107 this.acceptRadioButton.Size = new System.Drawing.Size(231, 17); 108 this.acceptRadioButton.TabIndex = 0; 109 this.acceptRadioButton.TabStop = true; 110 this.acceptRadioButton.Text = "I accept the terms in the license agreement."; 111 this.acceptRadioButton.UseVisualStyleBackColor = true; 112 this.acceptRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); 113 // 114 // rejectRadioButton 115 // 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); 74 125 // 75 126 // LicenseConfirmationBox … … 78 129 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 79 130 this.ClientSize = new System.Drawing.Size(518, 429); 131 this.Controls.Add(this.radioButtonGroupBox); 132 this.Controls.Add(this.label1); 80 133 this.Controls.Add(this.licenseLabel); 81 134 this.Controls.Add(this.rejectButton); … … 83 136 this.Controls.Add(this.richTextBox); 84 137 this.Name = "LicenseConfirmationBox"; 85 this.Text = "License Agreement"; 138 this.radioButtonGroupBox.ResumeLayout(false); 139 this.radioButtonGroupBox.PerformLayout(); 86 140 this.ResumeLayout(false); 87 141 this.PerformLayout(); … … 95 149 private System.Windows.Forms.Button rejectButton; 96 150 private System.Windows.Forms.Label licenseLabel; 151 private System.Windows.Forms.Label label1; 152 private System.Windows.Forms.GroupBox radioButtonGroupBox; 153 private System.Windows.Forms.RadioButton rejectRadioButton; 154 private System.Windows.Forms.RadioButton acceptRadioButton; 97 155 } 98 156 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.cs
r3006 r3009 17 17 InitializeComponent(); 18 18 richTextBox.Text = plugin.LicenseText; 19 licenseLabel.Text = plugin.ToString() + " " + licenseLabel.Text;19 this.Text = plugin.ToString(); 20 20 this.DialogResult = DialogResult.Cancel; 21 21 } … … 30 30 this.Close(); 31 31 } 32 33 private void radioButton1_CheckedChanged(object sender, EventArgs e) { 34 acceptButton.Enabled = acceptRadioButton.Checked; 35 } 32 36 } 33 37 }
Note: See TracChangeset
for help on using the changeset viewer.