public DatabaseNode(IDatabase database, ServerNode parent)
     : base(parent)
 {
     Database = database;
 }
Beispiel #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;
     }
 }