Beispiel #1
0
 public VaccineForm(string _Token, string _ClientName, string _PetName, string _PetId, PetForm f)
 {
     InitializeComponent();
     Token             = _Token;
     PetId             = _PetId;
     labelClient.Text += _ClientName;
     labelPet.Text    += _PetName;
     PetF              = f;
 }
Beispiel #2
0
        private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
        {
            string g = ClientsGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].GetType().ToString();

            if (g == "System.Windows.Forms.DataGridViewButtonCell")
            {
                string id = ClientsGrid.Rows[e.RowIndex].Cells[0].Value.ToString();

                PetForm a = new PetForm(Token, id);
                a.Show();
            }
        }