Herald.App.App C# (CSharp) Méthode

App() public méthode

初始化单一实例应用程序对象。 这是执行的创作代码的第一行, 逻辑上等同于 main() 或 WinMain()。
public App ( ) : System
Résultat System
        public App()
        {
            current = DateTime.Now.Subtract(new TimeSpan(TimeSpan.TicksPerHour));
            this.User = new HeraldUser();
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;
            Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
            if (localSettings.Values.ContainsKey("UUID"))
                User.UUID = localSettings.Values["UUID"].ToString();
            if (localSettings.Values.ContainsKey("userID"))
                User.userID = localSettings.Values["userID"].ToString();
        }