private void TSMIAddDBConnInfo_Click(object sender, EventArgs e) { using (FmDBConnInfoUpsert fm = new FmDBConnInfoUpsert(null)) { fm.ShowDialog(this); } RefreshDGVDBConnectInfo(); }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { using (FmDBConnInfoUpsert fm = new FmDBConnInfoUpsert((DBConnInfo)DGVDBConnectInfo.CurrentRow.DataBoundItem)) { fm.ShowDialog(this); } RefreshDGVDBConnectInfo(); }