private void buttonAdd_Click(object sender, RoutedEventArgs e) { CreateReceiptWindow crw = new CreateReceiptWindow(0); crw.Owner = this; crw.Show(); }
private void menuEdit_Click_1(object sender, RoutedEventArgs e) { selectedOrderID = ((DAL.Entities.Order)DataGridOrders.SelectedItem).OrderId; CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID); crw.Owner = this; crw.Show(); }
private void DataGridOrders_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e) { var k = (DataGrid)sender; selectedOrderID = ((DAL.Entities.Order)k.SelectedItem).OrderId; CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID); crw.Owner = this; crw.Show(); }
private void menuEdit_Click(object sender, RoutedEventArgs e) { var k = (DataGrid)e.OriginalSource; selectedOrderID = ((DBZion.DAL.Entities.Order)k.SelectedItem).OrderId; CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID); crw.Owner = this; crw.Show(); }
private void menuView_Click(object sender, RoutedEventArgs e) { int selectedOrderID = ((Order)DataGridOrders.SelectedItem).OrderId; main.selectedOrderID = selectedOrderID; CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID); crw.Owner = main; crw.Show(); }