Esempio n. 1
0
        private void buttonRemove_Click(object sender, EventArgs e)
        {
            if (listBoxTypeOfCompanies.SelectedIndex != -1)
            {
                string typeOfCompany          = listBoxTypeOfCompanies.SelectedItem.ToString();
                var    directoryTypeOfCompany = _qt.GetDirectoryTypeOfCompany(typeOfCompany);

                if (IsValidateRemove(directoryTypeOfCompany))
                {
                    _qt.RemoveDirectoryTypeOfCompany(directoryTypeOfCompany);
                    _qt.Save();

                    FormFill();
                }
            }
        }