private void BtAdmin_Click(object sender, EventArgs e) { foAdmin foAdmin = new foAdmin(); this.Hide(); foAdmin.ShowDialog(); }
private void adminToolStripMenuItem_Click(object sender, EventArgs e) { foAdmin af = new foAdmin(); this.Hide(); af.ShowDialog(); this.Show(); }