public DisarmTimeEditViewModel(DisarmTimeListViewModel _vm, DisarmTimeEditView _mw)
 {
     _DisarmTimeListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     DisarmTimeObj = new DisarmTimeOR();
     //UpdatetxtSource(_Window.gridContent);
 }
        public DisarmTimeEditViewModel(DisarmTimeListViewModel _vm, DisarmTimeEditView _mw, DisarmTimeOR _DisarmTimeObj)
        {
            _DisarmTimeListVM = _vm;
            _Window = _mw;
            _SourceObj = _DisarmTimeObj;

            OperationType = OpType.Alert;
            DisarmTimeObj = new DisarmTimeOR();
            DisarmTimeObj.Clone(_DisarmTimeObj);
        }
 public override void Insert()
 {
     DisarmTimeEditView _sta = new DisarmTimeEditView(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }
 public override void Update(object par)
 {
     if (par is DisarmTimeOR)
     {
         DisarmTimeEditView _sta = new DisarmTimeEditView(this, par as DisarmTimeOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }