/// <summary> /// Method loads from settings game board size /// </summary> private void LoadBoardSize() { Model.GameSettings settings = Model.GameSettings.GetInstance; this.boardSize = settings.boardSize; this.numberOfLayers = settings.numberOfLayers; }
private void LoadNewFieldNumberSettings() { Model.GameSettings settings = Model.GameSettings.GetInstance; this.NewFieldSlider.Minimum = Model.GameSettings.minNumberOfFieldsToAdd; SetNewFieldSliderMaximum(); }
private void TargetValueFieldSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { Model.GameSettings settings = Model.GameSettings.GetInstance; settings.SetTargetValueOfTheField((int)e.NewValue); this.TargetValueFieldNumber.Text = settings.GetTargetValueOfTheFieldString(); }
private void NewFieldSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { Model.GameSettings settings = Model.GameSettings.GetInstance; settings.numberOfFieldsToAdd = (int)e.NewValue; this.NewFieldNumber.Text = settings.numberOfFieldsToAdd.ToString(); }