Пример #1
0
 private void btnUpdateTFS_Click(object sender, EventArgs e)
 {
     try
     {
         dgvSP.EndEdit();
         List <CheckInModel> splist = new List <CheckInModel>();
         foreach (DataGridViewRow rw in dgvSP.Rows)
         {
             if (Convert.ToBoolean(rw.Cells[2].Value))
             {
                 splist.Add(new CheckInModel()
                 {
                     ID   = Convert.ToInt32(rw.Cells[0].Value),
                     Name = rw.Cells[3].Value.ToString()
                 });
             }
         }
         frmTFS frm = new frmTFS(splist, dtpScriptDate.Value);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #2
0
 private void btnUpdateTFS_Click(object sender, EventArgs e)
 {
     try
     {
         dgvSP.EndEdit();
         List<CheckInModel> splist = new List<CheckInModel>();
         foreach (DataGridViewRow rw in dgvSP.Rows)
         {
             if (Convert.ToBoolean(rw.Cells[2].Value))
                 splist.Add(new CheckInModel()
                 {
                     ID = Convert.ToInt32(rw.Cells[0].Value),
                     Name = rw.Cells[3].Value.ToString()
                 });
         }
         frmTFS frm = new frmTFS(splist, dtpScriptDate.Value);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }