Exemplo n.º 1
0
        private void NoCountryLabel_Click(object sender, EventArgs e)
        {
            AddItemForm AddItemForm = new AddItemForm(ref TopForm, "Введите название новой страны")
            {
                StartPosition = FormStartPosition.CenterParent
            };

            AddItemForm.ShowDialog();

            if (AddItemForm.bCanceled)
            {
                return;
            }

            Cover();

            Contractors.AddCountry(AddItemForm.sText);
            Contractors.RefillCountries();

            Uncover();
        }
Exemplo n.º 2
0
        private void CategoryNoListLabel_Click(object sender, EventArgs e)
        {
            AddItemForm AddItemForm = new AddItemForm(ref TopForm, "Введите название новой категории")
            {
                StartPosition = FormStartPosition.CenterParent
            };

            AddItemForm.ShowDialog();

            if (AddItemForm.bCanceled)
            {
                return;
            }

            Cover();

            Contractors.AddCategory(AddItemForm.sText);
            Contractors.RefillCategories();
            bNewCategory = true;

            Uncover();
        }