Пример #1
0
 public void AddFavoriteView(string name)
 {
     NodeFavoriteView node = ExistingFavoriteView(name);
     if (null == node)
     {
         node = new NodeFavoriteView(name, SqlCommon.SqlForm.contextFavoriteView);
         _favoriteViews.Nodes.Add(node);
     }
     SqlCommon.SqlForm.treeFavorites.SelectedNode = node;
 }
Пример #2
0
 public void RemoveFavoriteView(NodeFavoriteView node)
 {
     node.Remove();
 }
Пример #3
0
 private void LoadFavoriteViews()
 {
     List<string> names = Repository.Sql.Favorites.Views.GetValueNames().ToList();
     names.Sort();
     foreach (string name in names)
     {
         NodeFavoriteView node = new NodeFavoriteView(name, SqlCommon.SqlForm.contextFavoriteView);
         _favoriteViews.Nodes.Add(node);
     }
 }