Ejemplo n.º 1
0
        public override void OpenPopWindow(object param)
        {
            ParticularViewModel objv    = new ParticularViewModel("Bill");
            ParticularDetails   objpart = new ParticularDetails(objv);

            objv.OnAddedItem += objv_OnAddedItem;
            objpart.ShowDialog();
            base.OpenPopWindow(param);
        }
Ejemplo n.º 2
0
 public override void OpenPopWindow(object param)
 {
     if ((string)param == "Particular")
     {
         ParticularViewModel objv    = new ParticularViewModel("Invoice");
         ParticularDetails   objpart = new ParticularDetails(objv);
         objv.OnAddedItem += objv_OnAddedItem;
         objpart.ShowDialog();
     }
     else if ((string)param == "Payment")
     {
         PaymentDetailsViewModel objv    = new PaymentDetailsViewModel();
         PaymentDetails          objpart = new PaymentDetails(objv);
         objv.OnAddedItem += OnPaymentAddedItem;
         objpart.ShowDialog();
     }
     base.OpenPopWindow(param);
 }