public TimeLinkageEditViewModel(TimeLinkageListViewModel _vm, TimeLinkageEditView _mw)
 {
     _TimeLinkageListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     TimeLinkageObj = new TimeLinkageOR();
     Init();
 }
        public TimeLinkageEditViewModel(TimeLinkageListViewModel _vm, TimeLinkageEditView _mw, TimeLinkageOR _TimeLinkageObj)
        {
            _TimeLinkageListVM = _vm;
            _Window = _mw;
            _SourceObj = _TimeLinkageObj;

            OperationType = OpType.Alert;
            TimeLinkageObj = new TimeLinkageOR();
            TimeLinkageObj.Clone(_TimeLinkageObj);
            Init();
        }
 public override void Insert()
 {
     TimeLinkageEditView _sta = new TimeLinkageEditView(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }
 public override void Update(object par)
 {
     if (par is TimeLinkageOR)
     {
         TimeLinkageEditView _sta = new TimeLinkageEditView(this, par as TimeLinkageOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }