private void unapprovedOpenDrugProfile(object sender, RoutedEventArgs e) { if (dataGridAlternativeDrug.SelectedItem != null) { var openPage = new DrugProfilePage((DrugView)dataGridAlternativeDrug.SelectedItem); Drugframe.Navigate(openPage); } }
private void Row_MouseDoubleClick_Drugs(object sender, MouseButtonEventArgs e) { var data = (DataGrid)sender; var openPage = new DrugProfilePage((DrugView)data.SelectedValue); Drugframe.Navigate(openPage); }
private void graph_Click(object sender, RoutedEventArgs e) { var openPage = new DrugChartPage(); Drugframe.Navigate(openPage); }
private void addDrug_Click(object sender, RoutedEventArgs e) { var openPage = new AddDrug(); Drugframe.Navigate(openPage); }