//退出程序 private async void CloseButton_Click(object sender, RoutedEventArgs e) { await SettingsStorage.SaveSettingsAsync(); Application.Current.Shutdown(); }
private async void WindowLayer_Unloaded(object sender, RoutedEventArgs e) { await SettingsStorage.SaveSettingsAsync(); }