Beispiel #1
0
 // public System.Windows.Controls.ContentControl page;
 public UpdateDMViewModel(UpdateDelV view)
 {
     model         = new DelModel();
     this.myview   = view;
     updateDelComm = new ReplaceCommand();
     cancelComm    = new ReplaceCommand();
     this.updateDelComm.ReplaceUserControl += update;
     cancelComm.ReplaceUserControl         += cancel;
     //this.page = page1;
 }
Beispiel #2
0
 // public System.Windows.Controls.ContentControl page;
 public addDMviewModel(AddDelV view)
 {
     model       = new DelModel();
     this.myview = view;
     addDelComm  = new ReplaceCommand();
     this.addDelComm.ReplaceUserControl += add;
     cancelComm = new ReplaceCommand();
     cancelComm.ReplaceUserControl += cancel;
     //this.page = page1;
 }
Beispiel #3
0
        // public System.Windows.Controls.ContentControl page;
        public RemoveDMViewModel(RemoveDelV view)
        {
            model         = new DelModel();
            this.myview   = view;
            removeDelComm = new ReplaceCommand();
            cancelComm    = new ReplaceCommand();
            this.removeDelComm.ReplaceUserControl += remove;
            this.cancelComm.ReplaceUserControl    += cancel;

            //this.page = page1;
        }
Beispiel #4
0
 public DMViewModel(DeliveryMenUserControl deliveryMenUserControl, ContentControl page1)
 {
     model = new DelModel();
     this.deliveryMenUserControl = deliveryMenUserControl;
     this.page                        = page1;
     this.addDMComm                   = new ReplaceCommand();
     this.removeDMComm                = new ReplaceCommand();
     this.updateDMComm                = new ReplaceCommand();
     this.pdfDMComm                   = new ReplaceCommand();
     addDMComm.ReplaceUserControl    += addDMButton;
     removeDMComm.ReplaceUserControl += removeDMButton;
     updateDMComm.ReplaceUserControl += updateDMButton;
     pdfDMComm.ReplaceUserControl    += pdfDMButton;
 }
Beispiel #5
0
 public addDMviewModel()
 {
     model = new DelModel();
 }