public AlarmGroupsEditViewModel(AlarmGroupsListViewModel _vm, AlarmGroupsEditView _mw)
        {
            _AlarmGroupsListVM = _vm;
            _Window = _mw;
            OperationType = OpType.Add;
            AlarmGroupsObj = new AlarmGroupsOR();
            //UpdatetxtSource(_Window.gridContent);

            Init();
        }
        public AlarmGroupsEditViewModel(AlarmGroupsListViewModel _vm, AlarmGroupsEditView _mw, AlarmGroupsOR _AlarmGroupsObj)
        {
            _AlarmGroupsListVM = _vm;
            _Window = _mw;
            _SourceObj = _AlarmGroupsObj;

            OperationType = OpType.Alert;
            AlarmGroupsObj = new AlarmGroupsOR();
            AlarmGroupsObj.Clone(_AlarmGroupsObj);

            Init();
        }
 public AlarmGroupsEditView(AlarmGroupsListViewModel _List, AlarmGroupsOR _AlarmGroups)
 {
     InitializeComponent();
     this.DataContext = new AlarmGroupsEditViewModel(_List, this, _AlarmGroups);
 }