private void Edit_Trainess_Click(object sender, EventArgs e) { if (dgv_Trainess.SelectedRows.Count > 0) { DataTrainess trainess = dgv_Trainess.SelectedRows[0].Tag as DataTrainess; AddTrainess f_at = new AddTrainess(trainess); f_at.Show(); Update(); } }
private void Add_Trainess_Click(object sender, EventArgs e) { AddTrainess f_at = new AddTrainess(); f_at.Show(); }