Пример #1
0
        private void btnViewMember_Click(object sender, RoutedEventArgs e)
        {
            Member_Home mh = new Member_Home();

            mh.Show();
            this.Close();
        }
Пример #2
0
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            Member_Home MH = new Member_Home();

            MH.Show();
            this.Close();
        }
Пример #3
0
 private void redirect()
 {
     if (Properties.Settings.Default.role == "0")
     {
         Member_Home MH = new Member_Home();
         MH.Show();
         this.Close();
     }
     else if (Properties.Settings.Default.role == "1")
     {
         Representative representative = new Representative();
         representative.Show();
         this.Close();
     }
     else if (Properties.Settings.Default.role == "2")
     {
         Admin_Page admin = new Admin_Page();
         admin.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("You don't have any roles, bug happened.");
     }
 }