public DifficultyInformationForm(MountainDifficultyModel model) { InitializeComponent(); difficulty = model; DifficultyDataWiring(); }
private void selectDifficultyComboBox_SelectionChangeCommitted(object sender, EventArgs e) { MountainDifficultyModel mdm = (MountainDifficultyModel)selectDifficultyComboBox.SelectedItem; if (mdm != null) { DifficultyInformationForm frm = new DifficultyInformationForm(mdm); frm.Show(); } }
public void DifficultyListCreator() { MountainDifficultyModel One = new MountainDifficultyModel(); One.DifficultyNumber = 1; MountainDifficultyModel Two = new MountainDifficultyModel(); Two.DifficultyNumber = 2; MountainDifficultyModel Three = new MountainDifficultyModel(); Three.DifficultyNumber = 3; MountainDifficultyModel Four = new MountainDifficultyModel(); Four.DifficultyNumber = 4; MountainDifficultyModel Five = new MountainDifficultyModel(); Five.DifficultyNumber = 5; availibleDifficulties.Add(One); availibleDifficulties.Add(Two); availibleDifficulties.Add(Three); availibleDifficulties.Add(Four); availibleDifficulties.Add(Five); }