예제 #1
0
 public SchedulingEditViewModel(SchedulingListViewModel _vm, SchedulingEditView _mw)
 {
     _SchedulingListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     SchedulingObj = new SchedulingOR();
     //UpdatetxtSource(_Window.gridContent);
 }
예제 #2
0
        public SchedulingEditViewModel(SchedulingListViewModel _vm, SchedulingEditView _mw, SchedulingOR _SchedulingObj)
        {
            _SchedulingListVM = _vm;
            _Window = _mw;
            _SourceObj = _SchedulingObj;

            OperationType = OpType.Alert;
            SchedulingObj = new SchedulingOR();
            SchedulingObj.Clone(_SchedulingObj);
        }
예제 #3
0
 public override void Insert()
 {
     SchedulingEditView _sta = new SchedulingEditView(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }
예제 #4
0
 public override void Update(object par)
 {
     if (par is SchedulingOR)
     {
         SchedulingEditView _sta = new SchedulingEditView(this, par as SchedulingOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }