public void RefreshRequests() { if (IbApplication.RbClient != null) { ReloadReviews.Enabled = false; Task.Factory.StartNew(() => { IEnumerable <Review> tickets = null; try { tickets = IbApplication.RbClient.GetPersonalRequests(); } catch (Exception ex) { Messages.ShowError(ex); } finally { UiScheduler.UiExecute(() => RenderTickets(tickets)); } }); } }
void FakeInitForm_Shown(object sender, EventArgs e) { UiScheduler.InitializeUiContext(); Close(); }