예제 #1
0
        private void RemoveSelectedToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IFavorite favorite = this.GetSelectedFavorite();

            if (favorite != null && OrganizeFavoritesForm.AskIfRealyDelete("favorite"))
            {
                PersistedFavorites.Delete(favorite);
            }
        }
예제 #2
0
        private void DeleteGroupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var groupNode = this.favsTree.SelectedGroupNode;

            if (groupNode != null && OrganizeFavoritesForm.AskIfRealyDelete("group"))
            {
                this.persistence.Groups.Delete(groupNode.Group);
            }
        }
예제 #3
0
        private void TsbDeleteGroup_Click(object sender, EventArgs e)
        {
            IGroup group = GetSelectedGroup();

            if (group != null && OrganizeFavoritesForm.AskIfRealyDelete("group"))
            {
                this.persistence.Groups.Delete(group);
                LoadGroups();
            }
        }