public SchedulingEditViewModel(SchedulingListViewModel _vm, SchedulingEditView _mw) { _SchedulingListVM = _vm; _Window = _mw; OperationType = OpType.Add; SchedulingObj = new SchedulingOR(); //UpdatetxtSource(_Window.gridContent); }
public SchedulingEditViewModel(SchedulingListViewModel _vm, SchedulingEditView _mw, SchedulingOR _SchedulingObj) { _SchedulingListVM = _vm; _Window = _mw; _SourceObj = _SchedulingObj; OperationType = OpType.Alert; SchedulingObj = new SchedulingOR(); SchedulingObj.Clone(_SchedulingObj); }
public override void Insert() { SchedulingEditView _sta = new SchedulingEditView(this); _sta.Owner = Global._MainWindow; _sta.ShowDialog(); }
public override void Update(object par) { if (par is SchedulingOR) { SchedulingEditView _sta = new SchedulingEditView(this, par as SchedulingOR); _sta.Owner = Global._MainWindow; _sta.ShowDialog(); } }