Exemple #1
0
 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));
             }
         });
     }
 }
Exemple #2
0
        void FakeInitForm_Shown(object sender, EventArgs e)
        {
            UiScheduler.InitializeUiContext();

            Close();
        }