public ToUserFromStoreViewModel() { StoreBll = new StoreBll(); CompanyBll = new CompanyBll(); LocationBll = new LocationBll(); OperationBll = new OperationBll(); ToUserFromStore = new ToUserFromStoreModel(); Company = new ObservableCollection <CompanyModel>(); Location = new ObservableCollection <LocationModel>(); SearchCommand = new RelayCommand <string>(OnSearch); SubmitCommand = new RelayCommand(OnSubmit); OperationTypeEnums = new OperationTypeEnums(); StatusEnums = new StatusEnums(); BindData(); }
// Constructor public ChangeUserViewModel() { CompanyBll = new CompanyBll(); LocationBll = new LocationBll(); OperationBll = new OperationBll(); Company = new ObservableCollection <CompanyModel>(); Location = new ObservableCollection <LocationModel>(); SearchCommand = new RelayCommand <string>(OnSearch); SubmitCommand = new RelayCommand(OnSubmit); CleanCommand = new RelayCommand(onClean); OperationTypeEnums = new OperationTypeEnums(); StatusEnums = new StatusEnums(); BindData(); }