示例#1
0
        private void btnApply_Click(object sender, RoutedEventArgs e)
        {
            var vm      = (ConfigerViewModel)configer.DataContext;
            var setting = ConfigerService.GetData <LiveWallpaperOptions>(vm.Nodes);

            _ = WallpaperManager.SetOptions(setting);
        }
示例#2
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            var vm      = configer.DataContext as ConfigerViewModel;
            var data    = ConfigerService.GetData <Setting>(vm.Nodes);
            var setting = await JsonHelper.JsonSerializeAsync(data, path);

            Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(data.S3);
            await LanService.UpdateLanguage();
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     tmp = ConfigerService.GetData <TestSetting>(_vm.Nodes);
 }