private void Row_MouseDoubleClick_Lekari(object sender, MouseButtonEventArgs e) { var data = (DataGrid)sender; var openPage = new DoctorProfilePage((DoctorView)data.SelectedValue); Doctorframe.Navigate(openPage); }
private void Row_MouseDoubleClick_Sekretari(object sender, MouseButtonEventArgs e) { var data = (DataGrid)sender; var openPage = new SecretaryProfilePage((EmployeeView)data.SelectedValue); Doctorframe.Navigate(openPage); }
private void button_Click(object sender, RoutedEventArgs e) { if (dataGrid.SelectedItem != null) { var openPage = new DoctorProfilePage((DoctorView)dataGrid.SelectedItem); Doctorframe.Navigate(openPage); } }
private void button2_Click(object sender, RoutedEventArgs e) { if (dataGrid2.SelectedItem != null) { var openPage = new SecretaryProfilePage((EmployeeView)dataGrid2.SelectedItem); Doctorframe.Navigate(openPage); } }
public void NavigateEmptyPage() { var openPage = new Page(); bool v = Doctorframe.Navigate(openPage); }
private void reportButton_Click(object sender, RoutedEventArgs e) { Doctorframe.Navigate(new DoctorReportPage()); }
private void addDoctor_Click(object sender, RoutedEventArgs e) { var openPage = new AddDoctorPage((int)EmployeeView.countId); Doctorframe.Navigate(openPage); }