Пример #1
0
 public DatabaseNode(IDatabase database, ServerNode parent)
     : base(parent)
 {
     Database = database;
 }
Пример #2
0
 public void AddNewServer()
 {
     NewServerBindingDialog dlg = new NewServerBindingDialog();
     bool? result = dlg.ShowDialog();
     if (result.HasValue && result.Value)
     {
         ServerNode newNode = new ServerNode(Mongo.GetServer(dlg.Info.GetServerBinding()));
         ServerNodes.Add(newNode);
         SelectedNode = newNode;
     }
 }