示例#1
0
        public App()
        {
            this.InitializeComponent();
            var tz  = string.Empty;
            var tz2 = string.Empty;

            if (Device.RuntimePlatform == Device.Android)
            {
                tz  = TimeZoneInfo.Local.DisplayName;
                tz2 = TimeZoneInfo.Local.StandardName;
            }
            else if (Device.RuntimePlatform == Device.iOS)
            {
                tz = App.timeZoneName;
            }

            MainPage = new TimeZoneConversion.MainPage();
        }
        public App()
        {
            this.InitializeComponent();

            MainPage = new TimeZoneConversion.MainPage();
        }