private void DownloadForm_Load(object sender, EventArgs e) { var clients = InternalClientService.GetAllInternalClients(); cmbClients.DataSource = clients; cmbClients.DisplayMember = "clientName"; cmbClients.ValueMember = "clientID"; comboBox2.Visible = false; lblShop.Visible = false; }
public UserAdmin(DownloadUploadForm DownloadUploadForm) { downloaduploadform = DownloadUploadForm; InitializeComponent(); var clients = InternalClientService.GetAllInternalClients(); cmbClients.DataSource = clients; cmbClients.DisplayMember = "clientName"; cmbClients.ValueMember = "clientID"; isClientsLoaded = true; AdminRefresh(); }