コード例 #1
0
 public SettingPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     settingService = SettingService.GetInstance();
     userService = UserService.GetInstance();
     colorService = ColorService.GetInstance();
     switchesRespose = new GetSettingSwitchesRespose();
     autoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();
     userRespose = new GetUserRespose();
     colorResponse = new GetColorRespose();
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: pronebel/Wp8.1-Weather
        /// <summary>
        /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
        /// 逻辑上等同于 main() 或 WinMain()。
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;

            userService = UserService.GetInstance();
            settingService = SettingService.GetInstance();

            userRespose = new GetUserRespose();
            settingAutoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();

        }
コード例 #3
0
        public SettingPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            settingService = SettingService.GetInstance();
            userService = UserService.GetInstance();
            switchesRespose = new GetSettingSwitchesRespose();
            autoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();
            userRespose = new GetUserRespose();

        }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: jevonsflash/Weather
        /// <summary>
        /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
        /// 逻辑上等同于 main() 或 WinMain()。
        /// </summary>
        public App()
        {
            this.RequestedTheme = ApplicationTheme.Dark;
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;

            userService = UserService.GetInstance();
            settingService = SettingService.GetInstance();
            colorService = ColorService.GetInstance();
            userRespose = new GetUserRespose();
            settingAutoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();

            HardwareButtons.BackPressed += HardwareButtons_BackPressed;

        }
コード例 #5
0
        public PivotPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
            this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required;

            userService = UserService.GetInstance();
            weatherService = WeatherService.GetInstance();
            settingService = SettingService.GetInstance();
            userRespose = new GetUserRespose();
            userCityRespose = new GetUserCityRespose();
            weatherRespose = new GetWeatherRespose();
            weatherTypeRespose = new GetWeatherTypeRespose();
            settingAutoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();
        }
コード例 #6
0
ファイル: MainPage.xaml.cs プロジェクト: jevonsflash/Weather
        public MainPage()
        {
            this.navigationHelper = new NavigationHelper(this);
            this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required;

            userService = UserService.GetInstance();
            weatherService = WeatherService.GetInstance();
            settingService = SettingService.GetInstance();
            colorService = ColorService.GetInstance();

            userRespose = new GetUserRespose();
            userCityRespose = new GetUserCityRespose();
            weatherRespose = new GetWeatherRespose();
            weatherTypeRespose = new GetWeatherTypeRespose();
            settingAutoUpdateTimeRepose = new GetSettingAutoUpdateTimeRepose();
            colorResponse = new GetColorRespose();
            homePageModel = new HomePageModel();


            this.InitializeComponent();
            Loaded += MainPage_Loaded;
        }