Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3009


Ignore:
Timestamp:
03/12/10 09:52:05 (15 years ago)
Author:
gkronber
Message:

improved license dialog. #891 (Refactor GUI for plugin management)

Location:
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.Designer.cs

    r3006 r3009  
    2828      this.rejectButton = new System.Windows.Forms.Button();
    2929      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();
    3035      this.SuspendLayout();
    3136      //
     
    3540                  | System.Windows.Forms.AnchorStyles.Left)
    3641                  | 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);
    3843      this.richTextBox.Name = "richTextBox";
    3944      this.richTextBox.ReadOnly = true;
    40       this.richTextBox.Size = new System.Drawing.Size(494, 351);
     45      this.richTextBox.Size = new System.Drawing.Size(494, 261);
    4146      this.richTextBox.TabIndex = 0;
    4247      this.richTextBox.Text = "";
     
    4550      //
    4651      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);
    4854      this.acceptButton.Name = "acceptButton";
    4955      this.acceptButton.Size = new System.Drawing.Size(75, 23);
    5056      this.acceptButton.TabIndex = 1;
    51       this.acceptButton.Text = "I Accept ";
     57      this.acceptButton.Text = "Next >";
    5258      this.acceptButton.UseVisualStyleBackColor = true;
    5359      this.acceptButton.Click += new System.EventHandler(this.acceptButton_Click);
     
    5662      //
    5763      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);
    5965      this.rejectButton.Name = "rejectButton";
    60       this.rejectButton.Size = new System.Drawing.Size(127, 23);
     66      this.rejectButton.Size = new System.Drawing.Size(79, 23);
    6167      this.rejectButton.TabIndex = 2;
    62       this.rejectButton.Text = "Cancel Installation";
     68      this.rejectButton.Text = "Cancel";
    6369      this.rejectButton.UseVisualStyleBackColor = true;
    6470      this.rejectButton.Click += new System.EventHandler(this.rejectButton_Click);
     
    6773      //
    6874      this.licenseLabel.AutoSize = true;
    69       this.licenseLabel.Location = new System.Drawing.Point(13, 13);
     75      this.licenseLabel.Location = new System.Drawing.Point(12, 32);
    7076      this.licenseLabel.Name = "licenseLabel";
    71       this.licenseLabel.Size = new System.Drawing.Size(177, 13);
     77      this.licenseLabel.Size = new System.Drawing.Size(241, 13);
    7278      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);
    74125      //
    75126      // LicenseConfirmationBox
     
    78129      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    79130      this.ClientSize = new System.Drawing.Size(518, 429);
     131      this.Controls.Add(this.radioButtonGroupBox);
     132      this.Controls.Add(this.label1);
    80133      this.Controls.Add(this.licenseLabel);
    81134      this.Controls.Add(this.rejectButton);
     
    83136      this.Controls.Add(this.richTextBox);
    84137      this.Name = "LicenseConfirmationBox";
    85       this.Text = "License Agreement";
     138      this.radioButtonGroupBox.ResumeLayout(false);
     139      this.radioButtonGroupBox.PerformLayout();
    86140      this.ResumeLayout(false);
    87141      this.PerformLayout();
     
    95149    private System.Windows.Forms.Button rejectButton;
    96150    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;
    97155  }
    98156}
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.cs

    r3006 r3009  
    1717      InitializeComponent();
    1818      richTextBox.Text = plugin.LicenseText;
    19       licenseLabel.Text = plugin.ToString() + " " + licenseLabel.Text;
     19      this.Text = plugin.ToString();
    2020      this.DialogResult = DialogResult.Cancel;
    2121    }
     
    3030      this.Close();
    3131    }
     32
     33    private void radioButton1_CheckedChanged(object sender, EventArgs e) {
     34      acceptButton.Enabled = acceptRadioButton.Checked;
     35    }
    3236  }
    3337}
Note: See TracChangeset for help on using the changeset viewer.