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