예제 #1
0
파일: DBForm.cs 프로젝트: ironmp/MongoView
 //Connect
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     ConnectForm connect = new ConnectForm();
     if (connect.ShowDialog() == DialogResult.OK)
     {
         DB db = connect.db;
         loadDB(db);
     }
 }
예제 #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     this.treeViewDB.Nodes.Clear();
     ConnectForm connect = new ConnectForm();
     if (connect.ShowDialog() == DialogResult.OK)
     {
         DB db = connect.db;
         loadDB(db);
     }
 }