private void linkAdd_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { dbForm = new DBForm(OPType.新建); var dia = dbForm.ShowDialog(); if (dia == DialogResult.OK) { RefreshListView(); } }
private void linkClone_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (GV_DBConfigs.SelectedRows.Count <= 0) { MessageBox.Show("请选择连接!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } int Id = Convert.ToInt32(GV_DBConfigs.SelectedRows[0].Cells[0].Value); DBForm dbForm = new DBForm(OPType.克隆, Id); var diaResult = dbForm.ShowDialog(this); if (diaResult == DialogResult.OK) { RefreshListView(); } }