コード例 #1
0
 public StartPage()
 {
     this.InitializeComponent();
     OptListView.OptListViewModel = CoreManager.OptListViewModel ?? new LaunchOptionListViewModel();
     ViewModel  = new StartPageViewModel(OptListView.OptListViewModel);
     _msgDialog = new MsgDialog();
     NewsSource = new OfficialNews();
     GetNews();
 }
コード例 #2
0
        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));
        }
コード例 #3
0
 public DownloadPage()
 {
     this.InitializeComponent();
     this.ViewModel = CoreManager.DownlaodPageModel;
     dialog         = new MsgDialog();
 }