//edit sale private void btnEditSalesOrder_Click(object sender, RoutedEventArgs e) { if (SalesOrderSelected()) { SalesOrder_AddEdit editSaleForm = new SalesOrder_AddEdit(Ctx, SalesOrders, SelectedSalesOrder); editSaleForm.Show(); } else { MessageNotSelected(); } }
//add sale private void btnNewSalesOrder_Click(object sender, RoutedEventArgs e) { SalesOrder_AddEdit addSaleForm = new SalesOrder_AddEdit(Ctx, SalesOrders); addSaleForm.Show(); }