public LinkageSetEditViewModel(LinkageSetListViewModel _vm, LinkageSetEditView _mw)
 {
     _LinkageSetListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     LinkageSetObj = new LinkageSetOR();
     Init();
 }
        public LinkageSetEditViewModel(LinkageSetListViewModel _vm, LinkageSetEditView _mw, LinkageSetOR _LinkageSetObj)
        {
            _LinkageSetListVM = _vm;
            _Window = _mw;
            _SourceObj = _LinkageSetObj;

            OperationType = OpType.Alert;
            LinkageSetObj = new LinkageSetOR();
            LinkageSetObj.Clone(_LinkageSetObj);
            Init();
        }
 public override void Insert()
 {
     LinkageSetEditView _sta = new LinkageSetEditView(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }
 public override void Update(object par)
 {
     if (par is LinkageSetOR)
     {
         LinkageSetEditView _sta = new LinkageSetEditView(this, par as LinkageSetOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }