Esempio n. 1
0
        public async void DeleteWallpaper(Wallpaper w)
        {
            bool ok = false;

            try
            {
                ok = await Wallpaper.Delete(w);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            if (!ok)
            {
                MessageBox.Show("删除失败请手动删除");
            }

            RefreshLocalWallpaper();
        }