public ServicesUserControl(Guid agentId, ItensMonitoringService itemsMonitoringService)
 {
     InitializeComponent();
     _agentId = agentId;
     _itemsMonitoringService = itemsMonitoringService;
     Populate();
 }
 public AgentDetailUC(Guid id, AgentService agentService, ItensMonitoringService itensMonitoringService)
 {
     InitializeComponent();
     _id = id;
     _itensMonitoringService = itensMonitoringService;
     _agentsService          = agentService;
     Populate();
     InsertAgentDetail();
 }
Пример #3
0
        private void btnAgentsMenu_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            var service         = new AgentService(new AgentEndPoint(_customHttpCliente));
            var monitoringItems = new ItensMonitoringService(new ItemsEndPoint(_customHttpCliente));


            var agentsUserControl = new AgentsUserControl(service, monitoringItems, IncludeUserControl);

            IncludeUserControl(agentsUserControl, new EventArgs());
        }
Пример #4
0
 public AgentsUserControl(AgentService agentService,
                          ItensMonitoringService itensMonitoringService,
                          EventHandler onSwitchControl)
 {
     InitializeComponent();
     _agentService           = agentService;
     _onSwitchControl        = onSwitchControl;
     _itensMonitoringService = itensMonitoringService;
     _indexes = new Dictionary <Guid, AgentUC>();
     Populate();
 }