private void Offices_Click(object sender, RoutedEventArgs e) { //redirect the the right page OfficeReg Office = new OfficeReg(); Office.Show(); Window.GetWindow(this).Close(); }
private void Office_button_Click(object sender, RoutedEventArgs e) { //redirect the the right page OfficeReg OfficeReg = new OfficeReg(); OfficeReg.Show(); this.Close(); }