示例#1
0
        /// <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;
        }
示例#2
0
 private void LoadNewFieldNumberSettings()
 {
     Model.GameSettings settings = Model.GameSettings.GetInstance;
     this.NewFieldSlider.Minimum = Model.GameSettings.minNumberOfFieldsToAdd;
     SetNewFieldSliderMaximum();
 }
示例#3
0
 private void TargetValueFieldSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     Model.GameSettings settings = Model.GameSettings.GetInstance;
     settings.SetTargetValueOfTheField((int)e.NewValue);
     this.TargetValueFieldNumber.Text = settings.GetTargetValueOfTheFieldString();
 }
示例#4
0
 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();
 }