private void cmdRefreshMissingItems() { using (eBayIntegration oci = new eBayIntegration(this.Cfg)) { MissingItemsData = oci.ItemInFBEB(); //OnPropertyChanged("MissingItems"); OnPropertyChanged("MissingItemsData"); } }
private void Bw_DoWork(object sender, DoWorkEventArgs e) { try { using (eBayIntegration oci = new eBayIntegration(this.Cfg)) { oci.OnLog += Oci_OnLog; oci.Run(); } } catch (Exception ex) { DisplayException(ex); } }
static void Main(string[] args) { try { var cfg = Config.Load(); var ocf = new eBayIntegration(cfg); ocf.OnLog += Ocf_OnLog; ocf.Run(); Config.Save(cfg); } catch (Exception ex) { ExceptionLog(ex); } if (Debugger) { Console.ReadLine(); Process.Start("log.txt"); } }