// 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; }
// 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; }
// 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; }
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; }
public addDMviewModel() { model = new DelModel(); }