示例#1
0
 private void closeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MainApp.GetDBConnection().closeDBConnection();
     System.Environment.Exit(0);
 }
示例#2
0
 private void disconnectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MainApp.GetDBConnection().closeDBConnection();
     disconnectToolStripMenuItem.Enabled = false;
     connectToolStripMenuItem.Enabled    = true;
 }