private void btn_meniu_Click(object sender, RoutedEventArgs e)
        {
            Meniu_medic window = new Meniu_medic(c);

            window.Show();
            this.Close();
        }
示例#2
0
        private void fct_meniu()
        {
            c.autentificare(user_textBox1.Text, passwordBox1.Password);
            MessageBox.Show(c.mesaj);

            if (c.drept_admin == 'N')
            {
                Meniu_medic window = new Meniu_medic(c);
                window.Show();
                this.Hide();
            }
            else if (c.drept_admin == 'Y')
            {
                Meniu_admin window = new Meniu_admin();
                window.Show();
                this.Hide();
            }
        }