public AlarmLevelSetEditViewModel(AlarmLevelSetListViewModel _vm, AlarmLevelSetEditView _mw)
        {
            _AlarmLevelSetListVM = _vm;
            _Window = _mw;
            OperationType = OpType.Add;
            AlarmLevelSetObj = new AlarmLevelSetOR();

            Init();
        }
        public AlarmLevelSetEditViewModel(AlarmLevelSetListViewModel _vm, AlarmLevelSetEditView _mw, AlarmLevelSetOR _AlarmLevelSetObj)
        {
            _AlarmLevelSetListVM = _vm;
            _Window = _mw;
            _SourceObj = _AlarmLevelSetObj;

            OperationType = OpType.Alert;
            AlarmLevelSetObj = new AlarmLevelSetOR();
            AlarmLevelSetObj.Clone(_AlarmLevelSetObj);

            Init();
        }
 public AlarmLevelSetEditView(AlarmLevelSetListViewModel _List, AlarmLevelSetOR _AlarmLevelSet)
 {
     InitializeComponent();
     this.DataContext = new AlarmLevelSetEditViewModel(_List, this, _AlarmLevelSet);
 }