Exemplo n.º 1
0
 private static void AddOpportunityToList(Opportunity opportunity)
 {
     Form.Invoke(new Action(() => {
         Form.AddToList(opportunity);
     }));
 }
 public void AddToList(Opportunity opportunity)
 {
     _tempList.Add(opportunity);
 }
Exemplo n.º 3
0
        public static void AddWithJson(string text)
        {
            Opportunity opportunity = JsonConvert.DeserializeObject <Opportunity>(text);

            AddOpportunityToList(opportunity);
        }