当前位置: 首页>>代码示例>>C#>>正文


C# MainViewModel.OnNavigatedToAsync方法代码示例

本文整理汇总了C#中MainViewModel.OnNavigatedToAsync方法的典型用法代码示例。如果您正苦于以下问题:C# MainViewModel.OnNavigatedToAsync方法的具体用法?C# MainViewModel.OnNavigatedToAsync怎么用?C# MainViewModel.OnNavigatedToAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MainViewModel的用法示例。


在下文中一共展示了MainViewModel.OnNavigatedToAsync方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Design

        public Design()
        {
            AddStation = new AddStationViewModel( new DesignTransportService(), new DesignLocationService(), new DesignNavigationService(), new DesignPluginSettings() );
            Main = new MainViewModel( new DesignTransportService(), new DesignPluginSettings(), new DesignNavigationService(), new DesignLocationService() );
            Settings = new SettingsViewModel( new DesignPluginSettings() );

            AddStation.OnNavigatedToAsync();
            Main.OnNavigatedToAsync();
            Settings.OnNavigatedTo();
        }
开发者ID:accandme,项目名称:pocketcampus,代码行数:10,代码来源:Design.cs

示例2: Design

        public Design()
        {
            var directoryService = new DesignDirectoryService();
            var person = directoryService.SearchAsync( null, CancellationToken.None ).Result.Results[0];

            Main = new MainViewModel( directoryService, new DesignNavigationService(), new ViewPersonRequest( "DSLAB" ) );
            Person = new PersonViewModel( new DesignBrowserService(), new DesignEmailService(), new DesignPhoneService(), new DesignContactsService(), person );

            Main.OnNavigatedToAsync();
            Person.OnNavigatedTo();
        }
开发者ID:accandme,项目名称:pocketcampus,代码行数:11,代码来源:Design.cs

示例3: Design

        public Design()
        {
            var newsService = new DesignNewsService();
            var item = newsService.GetFeedsAsync( null, CancellationToken.None ).Result.Feeds[0].Items[0];

            FeedItem = new FeedItemViewModel( new DesignDataCache(), new DesignNewsService(), new DesignBrowserService(), item );
            Main = new MainViewModel( new DesignDataCache(), new DesignNewsService(), new DesignNavigationService() );

            FeedItem.OnNavigatedToAsync();
            Main.OnNavigatedToAsync();
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:11,代码来源:Design.cs

示例4: Design

        public Design()
        {
            var moodleService = new DesignMoodleService();
            var course = moodleService.GetCoursesAsync( null, CancellationToken.None ).Result.Courses[0];

            Course = new CourseViewModel( new DesignDataCache(), new DesignSecureRequestHandler(), moodleService,
                                          new DesignMoodleDownloader(), new DesignFileStorage(), new DesignBrowserService(),
                                          course );
            Main = new MainViewModel( new DesignDataCache(), new DesignSecureRequestHandler(), new DesignNavigationService(), new DesignMoodleService() );

            Course.OnNavigatedToAsync();
            Main.OnNavigatedToAsync();
        }
开发者ID:accandme,项目名称:pocketcampus,代码行数:13,代码来源:Design.cs

示例5: Design

        public Design()
        {
            About = new AboutViewModel( new DesignBrowserService(), new DesignEmailService(), new DesignRatingService() );
            Main = new MainViewModel( new DesignNavigationService(), new DesignServerAccess(), new DesignPluginLoader(),
                                      new DesignMainSettings(), new DesignTileService(),
                                      new ViewPluginRequest() );
            Settings = new SettingsViewModel( new DesignMainSettings(), new DesignAuthenticator(), new DesignNavigationService(),
                                              new DesignAuthenticationService(), new DesignCredentialsStorage(), new DesignTileService() );

            About.OnNavigatedTo();
            Main.OnNavigatedToAsync();
            Settings.OnNavigatedTo();
        }
开发者ID:accandme,项目名称:pocketcampus,代码行数:13,代码来源:Design.cs

示例6: Design

        public Design()
        {
            var foodService = new DesignFoodService();
            var meal = foodService.GetMenusAsync( null, CancellationToken.None ).Result.Menu[0].Meals[0];

            Main = new MainViewModel( new DesignDataCache(), new DesignNavigationService(), new DesignFoodService(),
                                      new DesignCredentialsStorage(), new DesignPluginSettings() );
            Rating = new RatingViewModel( new DesignFoodService(), new DesignNavigationService(), new DesignDeviceIdentifier(), meal );
            Settings = new SettingsViewModel( new DesignPluginSettings() );

            Main.OnNavigatedToAsync();
            Rating.OnNavigatedToAsync();
            Settings.OnNavigatedTo();
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:14,代码来源:Design.cs

示例7: Design

        public Design()
        {
            Main = new MainViewModel( new DesignNavigationService(), new DesignSecureRequestHandler(), new DesignCamiproService() );

            Main.OnNavigatedToAsync();
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:6,代码来源:Design.cs

示例8: Design

        public Design()
        {
            Main = new MainViewModel( new DesignDataCache(), new DesignNavigationService(), new DesignSecureRequestHandler(), new DesignIsAcademiaService() );

            Main.OnNavigatedToAsync();
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:6,代码来源:Design.cs

示例9: Design

        public Design()
        {
            Main = new MainViewModel( new DesignDataCache(), new DesignSatelliteService() );

            Main.OnNavigatedToAsync();
        }
开发者ID:ValentinMinder,项目名称:pocketcampus,代码行数:6,代码来源:Design.cs


注:本文中的MainViewModel.OnNavigatedToAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。