public StartPage() { this.InitializeComponent(); OptListView.OptListViewModel = CoreManager.OptListViewModel ?? new LaunchOptionListViewModel(); ViewModel = new StartPageViewModel(OptListView.OptListViewModel); _msgDialog = new MsgDialog(); NewsSource = new OfficialNews(); GetNews(); }
public SettingsView() { this.InitializeComponent(); ViewModel = CoreManager.SettingsModel ?? new SettingsViewModel(); _msgDialog = new MsgDialog(); if (CoreManager.WorkDir != null) { ViewModel.WorkDir = CoreManager.WorkDir.Path; } SetupAccountTypeState(ViewModel.GetAccountTypeFromTag(CoreManager.AccountTypeTag)); }
public DownloadPage() { this.InitializeComponent(); this.ViewModel = CoreManager.DownlaodPageModel; dialog = new MsgDialog(); }