Пример #1
0
 /// <summary>
 /// 公司数据库资源列表
 /// </summary>
 private void toolStripLabel5_Click(object sender, EventArgs e)
 {
     //展示公司提供的数据库资源列表
     SuperMessage.dbtype = 1;
     dbconn.DBHouse dbh = new dbconn.DBHouse();
     if (dbh.ShowDialog(this) == DialogResult.OK)   //当登窗体的对话框的返回值为OK时
     {
         dbh.Dispose();
         dbh.Close();
         toolStripStatusLabel3.Text = "关闭了数据库列表.";
     }
 }
Пример #2
0
 /// <summary>
 /// 我的数据库
 /// </summary>
 private void toolStripLabel2_Click(object sender, EventArgs e)
 {
     SuperMessage.dbtype = 0;
     if (udpSocket1.Active)
     {
         udpSocket1.Active = false;
     }
     dbconn.DBHouse dbh = new dbconn.DBHouse();
     if (dbh.ShowDialog(this) == DialogResult.OK)   //当登窗体的对话框的返回值为OK时
     {
         dbh.Dispose();
         dbh.Close();
         toolStripStatusLabel3.Text = "关闭了数据库列表.";
     }
 }