private void frmMain_Load(object sender, EventArgs e) { try { //login UserApiClient _userApiClient = new UserApiClient(Core.Client); //user RoleApiClient apiClientRole = new RoleApiClient(Core.Client); _userController = new UserController(_userApiClient, apiClientRole); // timer1.Enabled = true; timerCheckLogin.Enabled = true; MasterList.Innit(Core.User, Core.Path); if (Core.IsLogin) { lbUser.Text = Core.User; } else { lbUser.Text = "no login"; if (!_userController.IsLogin()) { Login(); } } } catch (Exception) { } }
public frmUser() { InitializeComponent(); apiClient = new UserApiClient(Core.Client); apiClientRole = new RoleApiClient(Core.Client); controller = new UserController(apiClient, apiClientRole); }
public CommunicationProvider(CommunicationConfigurationProvider communicationConfigurationProvider, UserApiClient userApiClient, RoleApiClient roleApiClient, PermissionApiClient permissionApiClient, RegistrationApiClient registrationApiClient, ContactApiClient contactApiClient, FulltextServiceClient fulltextServiceClient, CardFilesClient cardFilesClient) { m_configurationProvider = communicationConfigurationProvider; m_userApiClient = userApiClient; m_roleApiClient = roleApiClient; m_permissionApiClient = permissionApiClient; m_registrationApiClient = registrationApiClient; m_contactApiClient = contactApiClient; m_fulltextServiceClient = fulltextServiceClient; m_cardFilesClient = cardFilesClient; }
public RoleController(RoleApiClient apiClient) { _apiClient = apiClient; }
public frmRole() { InitializeComponent(); apiClient = new RoleApiClient(Core.Client); controller = new RoleController(apiClient); }
public UserController(UserApiClient userApiClient, RoleApiClient roleApiClient) { _userApiClient = userApiClient; _roleApiClient = roleApiClient; }
public UserController(UserApiClient apiClient, RoleApiClient apiClientRole) { _apiClient = apiClient; _apiClientRole = apiClientRole; }