private void panel4_Click(object sender, EventArgs e) { Form_Control f = new Form_Control(); f.Show(); this.Hide(); }
private void panel4_Click(object sender, EventArgs e) { Form_Control f = new Form_Control(); f.userState = bunifuCustomLabel5.Text; f.Show(); this.Hide(); }
private void Form_Home_Activated(object sender, EventArgs e) { bunifuCustomLabel3.Text = Properties.Settings.Default.Email; bunifuCustomLabel5.Text = Properties.Settings.Default.Role; Form_Control m = new Form_Control(); m.userState = Properties.Settings.Default.Role; if (bunifuCustomLabel5.Text == "Admin") { panel5.Enabled = true; } else { panel5.Enabled = false; } }