private void button2_Click(object sender, EventArgs e) { this.Hide(); Form form2 = new AccountModification(); form2.Show(); }
private void button2_Click(object sender, EventArgs e) { this.Hide(); AccountModification ad = new AccountModification(); ad.Show(); }
private void button1_Click(object sender, EventArgs e) { string aid; aid = textBox1.Text; if (radioButton1.Checked == true) { foreach (Account a in Database.accountList.ToList()) { if (aid == a.Username) { Database.accountList.Remove(a); AccountModification a1 = new AccountModification(); a1.Show(); this.Hide(); return; } } System.Windows.Forms.MessageBox.Show("Username Does not exist"); } }
private void button1_Click(object sender, EventArgs e) { string name; string pass; string privi; name = textBox1.Text; pass = textBox2.Text; if (radioButton1.Checked) { privi = radioButton1.Text; } else { privi = radioButton2.Text; } Database.accountList.Add(new Account(name, pass, privi)); this.Hide(); Form form2 = new AccountModification(); form2.Show(); }