示例#1
0
 private void btn_developer_Click(object sender, EventArgs e)
 {
     if (testdgv.SelectedRows.Count > 0)
     {
         project_Id = testdgv.SelectedRows[0].Cells[1].Value + string.Empty;
         code       = testdgv.SelectedRows[0].Cells[5].Value + string.Empty;
         line       = testdgv.SelectedRows[0].Cells[6].Value + string.Empty;
         Developer_sent ag = new Developer_sent();
         ag.Show();
     }
     else
     {
         MessageBox.Show("No Row Selected");
     }
 }
示例#2
0
        private void btn_todeveloper_Click(object sender, EventArgs e)
        {
            if (devdgv.SelectedRows.Count > 0)
            {
                project_Id       = devdgv.SelectedRows[0].Cells[0].Value + string.Empty;
                project_name     = devdgv.SelectedRows[0].Cells[2].Value + string.Empty;
                code             = devdgv.SelectedRows[0].Cells[7].Value + string.Empty;
                project_date     = devdgv.SelectedRows[0].Cells[3].Value + string.Empty;
                project_complete = devdgv.SelectedRows[0].Cells[4].Value + string.Empty;
                count            = devdgv.SelectedRows.Count;

                id    = devdgv.SelectedRows[0].Cells[0].Value + string.Empty;
                pname = devdgv.SelectedRows[0].Cells[2].Value + string.Empty;
                Developer_sent tod = new Developer_sent();
                tod.Show();
            }
            else
            {
                MessageBox.Show("You need a select a row", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }