public PageSolution(BaseLayer baseLayer, Preferences preferences, Model model)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _preferences = preferences;
     _model = model;
     BindElements();
 }
 public PageCombinations(BaseLayer baseLayer, Preferences preferences, Model model)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _preferences = preferences;
     _model = model;
     _combinationListViewModel = new CombinationListViewModel(_baseLayer);
     CombinationListControl.DataContext = _combinationListViewModel;
 }
 public PageActions(BaseLayer baseLayer, Preferences preferences, Model model)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _preferences = preferences;
     _model = model;
     BindElements();
     ErrorCount.Reset();
 }
 public PageEvents(BaseLayer baseLayer, Preferences preferences)
 {
     InitializeComponent();
     _baseLayer = baseLayer;
     _preferences = preferences;
     _model = new Model(_baseLayer, _preferences);
     BindElements();
     ErrorCount.Reset();
 }
Esempio n. 5
0
        public Model(BaseLayer baseLayer, Preferences preferences)
        {
            //конструктор класса, создает задачу и константу (только одна, Ставка)
            _baseLayer = baseLayer;
            _preferences = preferences;
            stake = new TaskParamName() { Name = "Ставка" };
            stakeValue = new TaskParam { Task = _baseLayer.Task };
            bonus = new EventParamName() { Name = "Бонус" };
            soeg = new CombinParamName() { Name = "SoEG" };

            InitialEvents = preferences.evenoddGame
                                ? InitialEvents = preferences.evenoddNames
                                : InitialEvents = preferences.numericNames;
            game = new Dice(InitialEvents.Length, preferences.numberofthrowings); //, preferences.numberofoutcomesperstake);
            GenerateEvents();
        }
        public PageOptions()
        {
            InitializeComponent();
            _baseLayer = new BaseLayer();

            #region Filling defaults
            _preferences = new Preferences
                {
                    evenoddNames = new char[] { 'E', 'O' },
                    numericNames = new char[] { '1', '2', '3', '4', '5', '6' },
                    evenoddGame = true,
                    numberofthrowings = 2,
                    numberofoutcomesperstake = 2,
                    amountofstakevalue = 1
                };

            #endregion
        }
 public PageOptions(BaseLayer baseLayer, Preferences preferences)
 {
     InitializeComponent();
     _baseLayer = new BaseLayer();
     _preferences = preferences;
 }
 public PageOptions(BaseLayer baseLayer, Preferences preferences)
 {
     InitializeComponent();
     _baseLayer   = new BaseLayer();
     _preferences = preferences;
 }