public CreateEntryForm() { InitializeComponent(); this.DrawComboBox(); this.mailComboBox.SelectedIndex = 0; this.keyTextBox.Text = CryptedRandomString.GenerateIdentifier(30, true, true, true, true); }
private void Generate() { this.keyTextBox.Text = CryptedRandomString.GenerateIdentifier( (int)numericUpDown1.Value, checkedListBox1.GetItemChecked(0), checkedListBox1.GetItemChecked(1), checkedListBox1.GetItemChecked(2), checkedListBox1.GetItemChecked(3)); }
public AddDialog() { InitializeComponent(); this.DrawMailComboBox(); if (this.mailComboBox.Items.Count > 1) { this.mailComboBox.SelectedIndex = 1; } else { this.mailComboBox.SelectedIndex = 0; } this.keyTextBox.Text = CryptedRandomString.GenerateIdentifier(30, true, true, true, true); }