public WhereForm(HandleFormEdit.HandleFormEdit hfe, string query, ref OleDbConnection connection) { InitializeComponent(); this.hfe = hfe; this.query = query; this.connection = connection; hfe.Enabled = false; }
//реализовать метод private void EditBtnClick(object sender, EventArgs e) { using (HandleFormEdit.HandleFormEdit hfe = new HandleFormEdit.HandleFormEdit(this, ref connection)) { hfe.ShowDialog(); if (hfe.DialogResult == DialogResult.OK) { hfe.Close(); DataGridLoad(); } } }