示例#1
0
        private void btn_editproject_Click(object sender, EventArgs e)
        {
            DataGridViewRow row      = dgv_projects.CurrentCell.OwningRow;
            int             id       = int.Parse(row.Cells["projectid"].Value.ToString());
            string          pn       = row.Cells["Title"].Value.ToString();
            string          pd       = row.Cells["Description"].Value.ToString();
            DateTime        sd       = Convert.ToDateTime(row.Cells["Start Date"].Value.ToString());
            DateTime        et       = Convert.ToDateTime(row.Cells["Estimated Time"].Value.ToString());
            string          cn       = row.Cells["Client"].Value.ToString();
            projectform     editform = new projectform(id, pn, pd, sd, et, cn);

            editform.Show();
        }
示例#2
0
        private void btn_addproject_Click(object sender, EventArgs e)
        {
            projectform frm = new projectform();

            frm.Show();
        }