private void weightDataGridView_MouseDoubleClick(object sender, MouseEventArgs e) { if (weightDataGridView.SelectedRows[0].Index != -1) { if (m_athlete.WeightRegister.WeightList.Count != 0) { AthleteGraphForm athleteGraphForm = new AthleteGraphForm("Weight", this, Measurement.Weight); athleteGraphForm.Show(); } else { MessageBox.Show("You need to measure in order to see your results", "Info"); } } }
private void bodyPartGridView_MouseDoubleClick(object sender, MouseEventArgs e) { if (bodyPartGridView.SelectedRows.Count != 0) { if (bodyPartGridView.SelectedRows[0].Index != -1) { string measuredPart = m_athlete.BodyPartRegister[bodyPartGridView.SelectedRows[0].Index].Name; if (m_athlete.BodyPartRegister[bodyPartGridView.SelectedRows[0].Index].Diameter.Count != 0) { AthleteGraphForm athleteGraphForm = new AthleteGraphForm(measuredPart, this, Measurement.BoodyPart); athleteGraphForm.Show(); } else { MessageBox.Show("You need to measure in order to see your results", "Info"); } } } }
public AthleteGraph(AthleteGraphForm athleteGraphForm) { m_athleteGraphForm = athleteGraphForm; }