public MainWindowViewModel(MainTab mainTab, StatisticTab statisticTab, SettingTab settingTab, AboutTab aboutTab)
 {
     _mainTab      = mainTab;
     _statisticTab = statisticTab;
     _settingTab   = settingTab;
     _aboutTab     = aboutTab;
 }
Beispiel #2
0
        public MainWindowViewModel(ILocalizationService localization,
                                   MainTab mainTab, StatisticTab statisticTab, SettingTab settingTab, AboutTab aboutTab)
        {
            Localization = localization.Data;

            _mainTab      = mainTab;
            _statisticTab = statisticTab;
            _settingTab   = settingTab;
            _aboutTab     = aboutTab;
        }
Beispiel #3
0
        /// <summary>
        /// Event click Button About
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAbout_Click(object sender, RoutedEventArgs e)
        {
            string name = "About";

            About page = new About();

            AboutTab tab = new AboutTab(name, page);

            CountryMainViewModel.AddTab(tab);

            CountryTabs.SelectedItem = tab;
        }