Ejemplo n.º 1
1
 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)
     {
     }
 }
Ejemplo n.º 2
0
 public frmUser()
 {
     InitializeComponent();
     apiClient     = new UserApiClient(Core.Client);
     apiClientRole = new RoleApiClient(Core.Client);
     controller    = new UserController(apiClient, apiClientRole);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 5
0
 public frmRole()
 {
     InitializeComponent();
     apiClient  = new RoleApiClient(Core.Client);
     controller = new RoleController(apiClient);
 }
Ejemplo n.º 6
0
 public UserController(UserApiClient userApiClient, RoleApiClient roleApiClient)
 {
     _userApiClient = userApiClient;
     _roleApiClient = roleApiClient;
 }
Ejemplo n.º 7
0
 public UserController(UserApiClient apiClient, RoleApiClient apiClientRole)
 {
     _apiClient     = apiClient;
     _apiClientRole = apiClientRole;
 }