예제 #1
0
        private async void SignOutLabel_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Aurora.Launcher.Windows.Launcher launcher = this;
            ContentDialog contentDialog = new ContentDialog();

            contentDialog.set_Title((object)Resources.SignOutConfirmationDialogTitle);
            ((ContentControl)contentDialog).Content = (object)Resources.SignOutConfirmationDialogContent;
            contentDialog.set_PrimaryButtonText(Resources.Yes);
            contentDialog.set_CloseButtonText(Resources.No);
            if (await contentDialog.ShowAsync() != 1)
            {
                return;
            }
            AuroraConfig.SaveDeviceAuth((DeviceAuth)null);
            Globals.AuthData = (OAuthToken)null;
            new Login().Show();
            launcher.Close();
        }