Ejemplo n.º 1
0
        //Клік на кнопці відміни введення ключового слова
        private void TagsCancelButton_Click(object sender, EventArgs e)
        {
            DialogResult affirmative = MyMessages.AbortDataEntrance();

            if (affirmative == DialogResult.No)
            {
            }
            else if (affirmative == DialogResult.Yes)
            {
                TagsTextBox.Text = String.Empty;
                TagsTextErrorProvider.SetError(TagsTextBox, String.Empty);
                if (ChoosedTagsListBox.Items.Count > 0)
                {
                    DialogResult dbquestion = MyMessages.DBAbortDataEntrance();
                    if (dbquestion == DialogResult.Yes)
                    {
                        ChoosedTagsListBox.Items.Clear();

                        TagsConfirmButton.Enabled      = false;
                        ChoosedTagDeleteButton.Enabled = false;
                        groupBox2.Visible = false;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        //Очищення списку обраних ключових слів
        private void ChoosedTagDeleteButton_Click(object sender, EventArgs e)
        {
            DialogResult affirmative = MyMessages.AbortDataEntrance();

            if (affirmative == DialogResult.Yes)
            {
                if (ChoosedTagsListBox.Items.Count > 0)
                {
                    ChoosedTagsListBox.Items.Clear();
                }
            }
        }
Ejemplo n.º 3
0
        //Закриття форми додавання ключових слів
        private void TagsExitButton_Click(object sender, EventArgs e)
        {
            DialogResult affirmative = MyMessages.AbortDataEntrance();

            if (affirmative == DialogResult.No)
            {
            }
            else if (affirmative == DialogResult.Yes)
            {
                TagsFormInitialSize();
                this.Close();
            }
        }