Пример #1
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);
            }
        }
Пример #2
0
        private void RemoveSelectedToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IFavorite favorite = this.GetSelectedFavorite();

            if (favorite != null && OrganizeFavoritesForm.AskIfRealyDelete("favorite"))
            {
                PersistedFavorites.Delete(favorite);
            }
        }
Пример #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();
            }
        }
Пример #4
0
 public void ShowManagedConnections()
 {
     using(OrganizeFavoritesForm conMgr = new OrganizeFavoritesForm()) {
         conMgr.ShowDialog();
         //LoadFavorites(txtSearchFavorites.Text);
         //LoadTags(txtSearchTags.Text);
     }
     LoadFavorites();
 }
Пример #5
0
 private void toolStripMenuItemImport_Click(object sender, EventArgs e)
 {
 	Log.InsideMethod();
 	
     OrganizeFavoritesForm conMgr = new OrganizeFavoritesForm {MainForm = this};
     
     if (this.favsList1 != null)
     	conMgr.SaveInDB = favsList1.SaveInDB;
     
     conMgr.CallImport();
     conMgr.ShowDialog();
 }