Ejemplo n.º 1
0
        private void button_Add_Click(object sender, EventArgs e)
        {
            FilePersonKeywordClient client = new FilePersonKeywordClient();

            if ((client.GetKeywordByKword(textBox_Kword.Text) == null))
            {
                global::MemoriesManager.Keyword newKeyword = new global::MemoriesManager.Keyword
                {
                    Kword = textBox_Kword.Text
                };
                client.CreateKeyword(newKeyword);
            }
            else
            {
                MessageBox.Show("That keyword already exists in DB", "Error");
            }
            memoriesManagerForm.RefreshDgk_DB();
        }