public FalseAlarmPolicyEditViewModel(FalseAlarmPolicyListViewModel _vm, FalseAlarmPolicyEditView _mw)
 {
     _FalseAlarmPolicyListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     FalseAlarmPolicyObj = new FalseAlarmPolicyOR();
     //UpdatetxtSource(_Window.gridContent);
     Init();
 }
        public FalseAlarmPolicyEditViewModel(FalseAlarmPolicyListViewModel _vm, FalseAlarmPolicyEditView _mw, FalseAlarmPolicyOR _FalseAlarmPolicyObj)
        {
            _FalseAlarmPolicyListVM = _vm;
            _Window = _mw;
            _SourceObj = _FalseAlarmPolicyObj;

            OperationType = OpType.Alert;
            FalseAlarmPolicyObj = new FalseAlarmPolicyOR();
            FalseAlarmPolicyObj.Clone(_FalseAlarmPolicyObj);

            Init();
        }
 public FalseAlarmPolicyEditView(FalseAlarmPolicyListViewModel _List, FalseAlarmPolicyOR _FalseAlarmPolicy)
 {
     InitializeComponent();
     this.DataContext = new FalseAlarmPolicyEditViewModel(_List, this, _FalseAlarmPolicy);
 }