public AlarmGroupMembersEditViewModel(AlarmGroupMembersListViewModel _vm, AlarmGroupMembersEditView _mw) { _AlarmGroupMembersListVM = _vm; _Window = _mw; OperationType = OpType.Add; AlarmGroupMembersObj = new AlarmGroupMembersOR(); Init(); }
public AlarmGroupMembersEditViewModel(AlarmGroupMembersListViewModel _vm, AlarmGroupMembersEditView _mw, AlarmGroupMembersOR _AlarmGroupMembersObj) { _AlarmGroupMembersListVM = _vm; _Window = _mw; _SourceObj = _AlarmGroupMembersObj; OperationType = OpType.Alert; AlarmGroupMembersObj = new AlarmGroupMembersOR(); AlarmGroupMembersObj.Clone(_AlarmGroupMembersObj); Init(); }
public override void Insert() { AlarmGroupMembersEditView _sta = new AlarmGroupMembersEditView(this); _sta.Owner = Global._MainWindow; _sta.ShowDialog(); }
public override void Update(object par) { if (par is AlarmGroupMembersOR) { AlarmGroupMembersEditView _sta = new AlarmGroupMembersEditView(this, par as AlarmGroupMembersOR); _sta.Owner = Global._MainWindow; _sta.ShowDialog(); } }