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 unapprovedOpenDrugProfile(object sender, RoutedEventArgs e) { if (dataGridAlternativeDrug.SelectedItem != null) { var openPage = new DrugProfilePage((DrugView)dataGridAlternativeDrug.SelectedItem); Drugframe.Navigate(openPage); } }