private void btnAddUser_Click(object sender, EventArgs e) { RegisterForm regf = new RegisterForm(servname); Hide(); regf.reg = false; regf.ShowDialog(); Close(); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { RegisterForm regf = new RegisterForm(servname); regf.reg = true; Hide(); regf.ShowDialog(); Show(); }
private void btnEditProfile_Click(object sender, EventArgs e) { RegisterForm regf = new RegisterForm(servname); Hide(); regf.upd = true; regf.login = login; regf.ShowDialog(); Show(); }
private void btnSettings_Click(object sender, EventArgs e) { if (admin == true) { AdminForm admf = new AdminForm(servname); Hide(); admf.login = lblName.Text; admf.ShowDialog(); Show(); } else { RegisterForm regf = new RegisterForm(servname); Hide(); regf.upd = true; regf.login = lblName.Text; regf.ShowDialog(); Show(); } }