private void btn_add_Click(object sender, EventArgs e) { using (var edit = new FmUserEdit(null)) { edit.ShowDialog(); Refesh(); } }
private void Dv_Main_DoubleClick(object sender, EventArgs e) { var row = GetFocusRow(); if (row != null) { var id = row.Id; if (!string.IsNullOrWhiteSpace(id)) { using (var edit = new FmUserEdit(id)) { edit.ShowDialog(); Refesh(); } } } }