public MainWindowFormViewModel() { ClickAddUserInProjectCommand = new RelayCommand(arg => ClickMethodAddUserInProject()); ClickBuildErModelCommand = new RelayCommand(arg => ClickMethodBuildErModel()); ClickChangeQuerryCommand = new RelayCommand(arg => ClickMethodChangeQuerry()); ClickAutorizationCommand = new RelayCommand(arg => ClickMethodAutorization()); ClickAddConnectionCommand = new RelayCommand(arg => ClickMethodAddConection()); ClickSaveExcelCommand = new RelayCommand(arg => ClickMethodSaveExcel()); ClickSaveTxtCommand = new RelayCommand(arg => ClickMethodSaveTxt()); ClickSavePdfCommand = new RelayCommand(arg => ClickMethodSavePdf()); ClickSendQuerryToEmailCommand = new RelayCommand(arg => ClickMethodSendQuerryToEmail()); ClickRefreshQuerryCommand = new RelayCommand(arg => ClickMethodRefreshQuerryCommand()); ClickDeleteRowCommand = new RelayCommand(arg => ClickMethodDeleteRowCommand()); MainWindowData.UserConnections = new ObservableCollection<Group>(); CanExecute = false; _currentUser = new User(); FirstName = "SignIn please"; var servicesFactory = new ServicesFactory(); _projectService = servicesFactory.GetProjectService(); //_builder = new BuilderBL.SQLDesigner.QueryBuilder(new DbSchema()); //SqlQuerry = MainWindowData.SqlQuerry; //MessageBox.Show("For using all functionality of the application, you have to register or sign-in"); }
public RegistrationFormViewModel() { ClickCloseCommand = new RelayCommand(arg => ClickCloseMethod()); var servicesFactory = new ServicesFactory(); _userService = servicesFactory.GetUserService(); }
public CreateProjectFormViewModel() { AddConnectionCommand = new RelayCommand(arg => AddConnectionMethod()); CreateProjectCommand = new RelayCommand(arg => CreateProjectMethod()); var servicesFactory = new ServicesFactory(); _projectService = servicesFactory.GetProjectService(); }
public AutorizationFormViewModel() { ClickSignInCommand = new RelayCommand(arg => ClickSignInMethod()); ClickRegisterCommand = new RelayCommand(arg => ClickRegisterMethod()); var servicesFactory = new ServicesFactory(); _userService = servicesFactory.GetUserService(); }