예제 #1
0
        private void buttonAddContragent_Click(object sender, EventArgs e)
        {
            if (this.textBoxContrags.Text == "")
            {
                return;
            }
            bool b = service.AddContragent(this.textBoxContrags.Text);

            if
            (!b)
            {
                MessageBox.Show("С таким именем уже существует");
            }
            else
            {
                this.textBoxContrags.Text = "";
                UpdateComboContragents();
                FillDataGrid();
            }
        }