Ejemplo n.º 1
0
        //退出程序
        private async void CloseButton_Click(object sender, RoutedEventArgs e)
        {
            await SettingsStorage.SaveSettingsAsync();

            Application.Current.Shutdown();
        }
Ejemplo n.º 2
0
 private async void WindowLayer_Unloaded(object sender, RoutedEventArgs e)
 {
     await SettingsStorage.SaveSettingsAsync();
 }