public static void DeleteMyAnnotations() { try { BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += delegate { SaveMyStuff_2 webService = new SaveMyStuff_2(Server.GenerateContentSyncURL(Settings.ServerURL)); if (Settings.UseFormsAuth) { webService.CookieContainer = Authenticate.GetCookieContainer(); } else { webService.Credentials = KeychainAccessor.NetworkCredential; } webService.DeleteMyPenAnnotations(); }; worker.RunWorkerAsync(); } catch (Exception ex) { Logger.WriteLineDebugging("SaveMyStuff - DeleteMyAnnotations: {0}", ex.ToString()); } }
public static void DeleteMyAnnotationsFromCloud() { SaveMyStuff_2 client = GenerateSaveMyStuffClient(); client.DeleteMyPenAnnotations(); }