Beispiel #1
0
 private void grid_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         DataGridView datagrid = this.dataGridView1;
         Int64        index;
         if (datagrid.RowCount > 0)
         {
             //member = new BIZ.Member();
             index = datagrid.CurrentRow.Index;
             if ((string)datagrid.CurrentCell.Value.ToString() == "ADD TO RESULT")
             {
                 frmAddResult addresult = new frmAddResult();
                 addresult.StickerNumber = Convert.ToString(datagrid.Rows[Convert.ToInt32(index)].Cells[3].Value);
                 addresult.MobileNumber  = Convert.ToString(datagrid.Rows[Convert.ToInt32(index)].Cells[4].Value);
                 addresult.DateRelease   = Convert.ToDateTime(datagrid.Rows[Convert.ToInt32(index)].Cells[5].Value);
                 addresult.Time          = Convert.ToString(datagrid.Rows[Convert.ToInt32(index)].Cells[6].Value);
                 addresult.ClubID        = ClubID;
                 addresult.CallFrom      = "INBOX";
                 addresult.ShowDialog();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }
Beispiel #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            frmAddResult addResult = new frmAddResult();

            addResult.DateRelease = dateTimePicker1.Value.Date;
            addResult.ClubID      = ClubID;
            addResult.Source      = "Bundy Clock";
            addResult.Text        = "Add Race Result From Bundy Clock";
            addResult.ShowDialog();
            ViewResult();
        }
Beispiel #3
0
 private void button3_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddResult addResult = new frmAddResult();
         addResult.DateRelease = dateTimePicker1.Value.Date;
         addResult.ClubID      = ClubID;
         addResult.Source      = "Back-up";
         addResult.ShowDialog();
         ViewResult();
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
     }
 }