private void btnViewMember_Click(object sender, RoutedEventArgs e) { Member_Home mh = new Member_Home(); mh.Show(); this.Close(); }
private void btnHome_Click(object sender, RoutedEventArgs e) { Member_Home MH = new Member_Home(); MH.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."); } }