private void FormFill() { ClearForm(); listBoxTypeOfCompanies.Items.AddRange(_qt.GetDirectoryTypeOfCompanyNames().ToArray()); buttonRemove.Enabled = listBoxTypeOfCompanies.Items.Count > 0 ? true : false; }
private void FormNameOfCompany_Load(object sender, EventArgs e) { var db = new Context(); _qt = new QueryTemplates(db); FormFill(); comboBoxTypeOfCompanies.Items.AddRange(_qt.GetDirectoryTypeOfCompanyNames().ToArray()); }