Example #1
0
        private void FormFill()
        {
            ClearForm();
            listBoxTypeOfCompanies.Items.AddRange(_qt.GetDirectoryTypeOfCompanyNames().ToArray());

            buttonRemove.Enabled = listBoxTypeOfCompanies.Items.Count > 0 ? true : false;
        }
Example #2
0
        private void FormNameOfCompany_Load(object sender, EventArgs e)
        {
            var db = new Context();

            _qt = new QueryTemplates(db);

            FormFill();
            comboBoxTypeOfCompanies.Items.AddRange(_qt.GetDirectoryTypeOfCompanyNames().ToArray());
        }