Example #1
0
 public static void Update(Sale sale)
 {
     var saleCard = new SaleCard();
     saleCard.GetData(sale);
     var changed = saleCard.ShowDialog() == DialogResult.OK;
     if (changed)
     {
         sale.ReApply();
         Context.Save();
     }
 }
Example #2
0
 public static void Copy(Sale sale)
 {
     var saleCard = new SaleCard();
     saleCard.GetData(sale, true);
     saleCard.ShowDialog();
 }