public AlramBindTimeEditViewModel(AlramBindTimeListViewModel _vm, AlramBindTimeEditView _mw)
        {
            _AlramBindTimeListVM = _vm;
            _Window = _mw;

            OperationType = OpType.Add;
            AlramBindTimeObj = new AlramBindTimeOR();
            Init();
        }
        public AlramBindTimeEditViewModel(AlramBindTimeListViewModel _vm, AlramBindTimeEditView _mw, AlramBindTimeOR _AlramBindTimeObj)
        {
            _AlramBindTimeListVM = _vm;
            _Window = _mw;

            _SourceObj = _AlramBindTimeObj;
            OperationType = OpType.Alert;
            AlramBindTimeObj = new AlramBindTimeOR();
            AlramBindTimeObj.Clone(_AlramBindTimeObj);
            Init();
        }
 public override void Insert()
 {
     AlramBindTimeEditView _sta = new AlramBindTimeEditView(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }
 public override void Update(object par)
 {
     if (par is AlramBindTimeOR)
     {
         AlramBindTimeEditView _sta = new AlramBindTimeEditView(this, par as AlramBindTimeOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }