示例#1
0
        private void toolEntering_Click(object sender, EventArgs e)
        {
            FrmEntering frm = new FrmEntering();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                SeachData();
            }
        }
示例#2
0
        private void uC_DataGridView_Page1_CellDoubleClickEvents(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView dgList = (DataGridView)sender;

            if (dgList != null)
            {
                if (dgList.CurrentRow != null)
                {
                    FrmEntering frm = new FrmEntering();
                    frm.key = dgList.CurrentRow.Cells["MeterID"].Value.ToString();
                    frm.ShowDialog();
                    if (frm.DialogResult == DialogResult.OK)
                    {
                        SeachData();
                    }
                }
            }
        }