public MainWindowViewModel(MainTab mainTab, StatisticTab statisticTab, SettingTab settingTab, AboutTab aboutTab) { _mainTab = mainTab; _statisticTab = statisticTab; _settingTab = settingTab; _aboutTab = aboutTab; }
public MainWindowViewModel(ILocalizationService localization, MainTab mainTab, StatisticTab statisticTab, SettingTab settingTab, AboutTab aboutTab) { Localization = localization.Data; _mainTab = mainTab; _statisticTab = statisticTab; _settingTab = settingTab; _aboutTab = aboutTab; }
/// <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; }