public StationEditViewModel(StationListViewModel _vm,StationEdit _mw)
 {
     _StationListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     StationObj = new StationOR();
     UpdatetxtSource(_Window.gridContent);
 }
        public StationEditViewModel(StationListViewModel _vm, StationEdit _mw, StationOR _StationObj)
        {
            _StationListVM = _vm;
            _Window = _mw;
            _SourceObj = _StationObj;

            OperationType = OpType.Alert;
            StationObj = new StationOR();
            StationObj.Clone(_StationObj);
        }
 public override void Update(object par)
 {
     if (par is StationOR)
     {
         StationEdit _sta = new StationEdit(this,par as StationOR);
         _sta.Owner = Global._MainWindow;
         _sta.ShowDialog();
     }
 }
 public override void Insert()
 {
     StationEdit _sta = new StationEdit(this);
     _sta.Owner = Global._MainWindow;
     _sta.ShowDialog();
 }