Пример #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if ((lstTags.SelectedItem.ToString()).Split('\t')[1] == "X")
            {
                bool didComplete = _controller.TagDelete(lstTags.SelectedItem.ToString().Split('\t')[0]);

                if (didComplete)
                {
                    LoadAllTags();
                    mtxtNewTag.Text = "";
                }
            }
            else
            {
                MessageBox.Show("This tag is assigned to a member.", "Could Not Delete", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }