Exemplo n.º 1
0
        private void btnAddRunText_Click(object sender, EventArgs e)
        {
            FormRunText form = new FormRunText();

            form.DataChanged += new Action <EventArgs>(FormRunText_DataChanged);
            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void gridRunText_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            string id = Convert.ToString(gridRunText.Rows[e.RowIndex].Cells[0].Value);

            if (id == "")
            {
                return;
            }

            FormRunText form = new FormRunText(id.Trim());

            form.DataChanged += new Action <EventArgs>(FormRunText_DataChanged);
            form.ShowDialog();
        }