Пример #1
0
 private void gridCoachPay_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         CoachPayForm cpf = new CoachPayForm(this, manager);
         cpf.Show();
         int      currentCoachPayID = Convert.ToInt32(gridCoachPay.Rows[e.RowIndex].Cells[0].Value);
         CoachPay pay = pays.Where(x => x.ID == currentCoachPayID).ToList <CoachPay>()[0];
         cpf.Populate(pay, e.RowIndex);
     }
 }
Пример #2
0
        private void btnAddCoachPayment_Click(object sender, EventArgs e)
        {
            CoachPayForm cpf = new CoachPayForm(this, manager);

            cpf.Show();
        }