private void register_lbl_Click(object sender, EventArgs e) { register f = new register(); this.Dispose(); f.ShowDialog(); }
private void reg_lbl_Click(object sender, EventArgs e) { if (reg_lbl.Text == " Log out..") { Global.Nickname = "undef"; first_form f = new first_form(); this.Dispose(); f.Show(); } else { register r = new register(); this.Hide(); r.ShowDialog(); } }