Exemplo n.º 1
0
 public WhereForm(HandleFormEdit.HandleFormEdit hfe, string query, ref OleDbConnection connection)
 {
     InitializeComponent();
     this.hfe        = hfe;
     this.query      = query;
     this.connection = connection;
     hfe.Enabled     = false;
 }
Exemplo n.º 2
0
 //реализовать метод
 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();
         }
     }
 }