public static void SendComments(string star, string note, long edsmid = 0, EDCommander cmdr = null) // (verified with EDSM 29/9/2016) { System.Diagnostics.Debug.WriteLine("Send note to EDSM " + star + " " + edsmid + " " + note); EDSMClass edsm = new EDSMClass(cmdr); if (!edsm.ValidCredentials) { return; } System.Threading.Tasks.Task taskEDSM = System.Threading.Tasks.Task.Factory.StartNew(() => { edsm.SetComment(star, note, edsmid); }); }
public static void SendComments(string star, string note, long edsmid = 0) // (verified with EDSM 29/9/2016) { System.Diagnostics.Debug.WriteLine("Send note to EDSM " + star + " " + edsmid + " " + note); EDSMClass edsm = new EDSMClass(); if (!edsm.IsApiKeySet) { return; } Task taskEDSM = Task.Factory.StartNew(() => { edsm.SetComment(star, note, edsmid); }); }