Example #1
0
        private void buttonRemove_Click(object sender, EventArgs e)
        {
            if (listBoxTypeOfPosts.SelectedIndex != -1)
            {
                string typeOfPost          = listBoxTypeOfPosts.SelectedItem.ToString();
                var    directoryTypeOfPost = _qt.GetDirectoryTypeOfPost(typeOfPost);

                if (IsValidateRemove(directoryTypeOfPost))
                {
                    _qt.RemoveDirectoryTypeOfPost(directoryTypeOfPost);
                    _qt.Save();

                    FormFill();
                }
            }
        }