private void AddOutputParam()
        {
            ServiceStoreParams newParam = new ServiceStoreParams()
            {
                ServiceStore = SelectedServiceStore,
                InOut        = false,
            };

            SelectedServiceStore.ServiceStoreParams.Add(newParam);
            ServiceStoreParamAddWindow editWindow = new ServiceStoreParamAddWindow(SelectedServiceStore, newParam)
            {
                Owner = this.SourceWindow
            };

            SwitchWindows(editWindow, true);
            this.OutputFieldList = ReloadOutputFieldList(); NotifyPropertyChanged("OutputFieldList");
        }
        public ServiceStoreParamAddViewModel(ServiceStoreParamAddWindow sourceWindow, ServiceStore selectedServiceStore, ServiceStoreParams serviceStoreParam)
        {
            this.SourceWindow         = sourceWindow;
            this.SelectedServiceStore = selectedServiceStore;
            this._contextDal          = new ServiceStoreParamsDAL();
            this.TeamDal               = new TeamDAL();
            this.ServiceTableDal       = new ServiceTableDAL();
            this.ServiceTableFieldDal  = new ServiceTableFieldDAL();
            this.ServiceStoreParamsDal = new ServiceStoreParamsDAL();
            this.ServiceStoreDal       = new ServiceStoreDAL();
            this.DictionaryDal         = new DictionaryDAL();

            this.SessionGroupID                    = TeamDal.FindById(selectedServiceStore.ProviderTeamID).SessionGroupID;
            this.TeamFilter                        = TeamDal.FindById(SelectedServiceStore.ProviderTeamID);
            this.SessionGroupTeamList              = new ObservableCollection <Team>(TeamDal.FindAll(x => x.SessionGroupID == SessionGroupID));
            this.TableList                         = ReloadServiceTableList();
            this.TableFieldList                    = ReloadServiceTableFieldList();
            this.SelectedServiceStoreParam         = serviceStoreParam;
            SelectedServiceStoreParam.ServiceStore = SelectedServiceStore;
            CustomFieldTypeList                    = new ObservableCollection <Dictionary>(DictionaryDal.DictionaryListByType(3));
            this.SaveCommand                       = new RelayCommand(SaveParameter, CanSaveParameter);
        }