private void ButtonBack_Click(object sender, RoutedEventArgs e) { Representative Re = new Representative(); Re.Show(); this.Close(); }
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."); } }
private void goBack(object sender, RoutedEventArgs e) { if (Properties.Settings.Default.role == "1") { Representative representative = new Representative(); representative.Show(); this.Close(); } else if (Properties.Settings.Default.role == "2") { Admin_Page AP = new Admin_Page(); AP.Show(); this.Close(); } }