Esempio n. 1
0
        private void btn_new_Click(object sender, EventArgs e)
        {
            var queryform = new QueryManagerForm();

            queryform.parentForm = this;
            queryform.ShowDialog();
        }
Esempio n. 2
0
        private void dataGridView1_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
        {
            DataTable dt        = (DataTable)this.dataGridView1.DataSource;
            var       rowindex  = e.RowIndex;
            var       queryform = new QueryManagerForm();

            queryform.parentForm = this;
            queryform.setdata(dt.Rows[rowindex][0].ToString(),
                              dt.Rows[rowindex][1].ToString());
            queryform.ShowDialog();
        }