/// <summary>Initializes a new instance of the <see cref="CovidListViewPage" /> class.</summary>
 public CovidListViewPage()
 {
     this.InitializeComponent();
     this.covidAnalysisViewModel = new CovidAnalysisViewModel();
     DataContext = this.covidAnalysisViewModel;
     this.disableTextBoxes();
 }
Пример #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MainPage" /> class.
        /// </summary>
        public MainPage()
        {
            this.InitializeComponent();

            ApplicationView.PreferredLaunchViewSize = new Size {
                Width = ApplicationWidth, Height = ApplicationHeight
            };
            ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
            ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(ApplicationWidth, ApplicationHeight));

            this.csvReader = new CsvReader();
            this.csvWriter = new CsvWriter();
            this.viewModel = new CovidAnalysisViewModel();

            this.lowerThresholdTextBox.Text = LowerThresholdDefault.ToString();
            this.upperThresholdTextBox.Text = UpperThresholdDefault.ToString();
            this.binSizeTextBox.Text        = BinSizeDefault.ToString();

            this.comboboxLocationSelection.IsEnabled = false;
            this.comboboxState.ItemsSource           = Enum.GetValues(typeof(UnitedStatesLocations)).Cast <UnitedStatesLocations>();
        }