Пример #1
0
 public static void RemoveFavFolder(ConnParams conn)
 {
     FavouriteList favouriteList = new FavouriteList(conn);
     favouriteList.RemoveFavouritFolderForAConnection();
 }
Пример #2
0
    	private void RefreshConnectionData(string filepath)
    	{
    		ConnParams conParams = new ConnParams(filepath, false);
    		RecentQueries recQueries = new RecentQueries(conParams);
    		recQueries = recQueries.ChkIfRecentConnIsInDb();

    		if (recQueries != null)
    		{
    			FavouriteList favList = new FavouriteList(conParams);
    			favList.RemoveFavouritFolderForAConnection();

    			GroupofSearchStrings grpSearchString = new GroupofSearchStrings(conParams);
    			grpSearchString.RemovesSearchStringsForAConnection();

    			recQueries.deleteRecentQueriesForAConnection();
    		}
    	}