Пример #1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            AddLineForm frm = new AddLineForm();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                searchdata(ref dgv_line, true);
            }
        }
Пример #2
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            AddLineForm frm = new AddLineForm();

            Class.valiballecommon va = Class.valiballecommon.GetStorage();
            va.value1 = dgv_line.Rows[dgv_line.SelectedCells[0].RowIndex].Cells[1].Value.ToString();
            va.value2 = dgv_line.Rows[dgv_line.SelectedCells[0].RowIndex].Cells[2].Value.ToString();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                searchdata(ref dgv_line, true);
            }
        }