Пример #1
0
        public MainPageViewModel()
        {
            Instance = this;
            NumberValues = new ObservableCollection<double>(
                Enumerable.Range(0, 40).Select(i => i * 0.25463105308788066303)
            );

            Random rand = new Random();
            NumberValue = NumberValues[rand.Next(NumberValues.Count - 1)];
            BooleanValue = false;
            DateTimeValue = DateTime.UtcNow;

            SimpleModels = new ObservableCollection<SimpleModel>();
            for (int i = 0; i < 100; i++)
            {
                SimpleModels.Add(new SimpleModel());
            }
        }
Пример #2
0
 public MainPageViewModel()
 {
     _SpeechService = new Services.SpeechService.SpeechService();
     Instance = this;
 }