Пример #1
0
 public Form1()
 {
     InitializeComponent();
     #region Configuration GUI
     this.button1.Text       = "&Générer";
     this.button2.Text       = "&About";
     this.button3.Text       = "&Quitter";
     this.textBox2.Text      = "entrez un pseudonyme dans la première box";
     this.textBox1.TextAlign = HorizontalAlignment.Center;
     this.textBox2.TextAlign = HorizontalAlignment.Center;
     this.ControlBox         = false;
     this.StartPosition      = FormStartPosition.CenterScreen;
     this.groupBox1.Text     = "Choisissez votre générateur dans la liste";
     KeygenDLL.Class1 Source = new KeygenDLL.Class1();
     this.comboBox1.DataSource   = Source.Data();
     this.comboBox1.SelectedText = "keygen1";
     this.comboBox1.Refresh();
     this.Text = "Keygen";
     #endregion
 }
Пример #2
0
 private void GetKey()
 {
     KeygenDLL.Class1 Code = new KeygenDLL.Class1();
     textBox2.Text = Code.Choix(comboBox1.Text, textBox1.Text);
 }