private void RemoveSelectedToolStripMenuItem_Click(object sender, EventArgs e) { IFavorite favorite = this.GetSelectedFavorite(); if (favorite != null && OrganizeFavoritesForm.AskIfRealyDelete("favorite")) { PersistedFavorites.Delete(favorite); } }
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); } }
private void TsbDeleteGroup_Click(object sender, EventArgs e) { IGroup group = GetSelectedGroup(); if (group != null && OrganizeFavoritesForm.AskIfRealyDelete("group")) { this.persistence.Groups.Delete(group); LoadGroups(); } }