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(); }
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()); }
public AgentsUserControl(AgentService agentService, ItensMonitoringService itensMonitoringService, EventHandler onSwitchControl) { InitializeComponent(); _agentService = agentService; _onSwitchControl = onSwitchControl; _itensMonitoringService = itensMonitoringService; _indexes = new Dictionary <Guid, AgentUC>(); Populate(); }