Beispiel #1
0
    protected void OnChildPortfolioPopulated(ChildPortfolioPopulatedEventArgs e_)
    {
      var h = ChildPortfolioPopulated;

      if (h != null) h(this, e_);
    }
 private async void handlePortfolioChildCreated(object sender, ChildPortfolioPopulatedEventArgs e_)
 {
   if (InvokeRequired)
     Invoke(new EventHandler<ChildPortfolioPopulatedEventArgs>(handlePortfolioChildCreated), sender, e_);
   else
     await addPortfolio(sender as Portfolio, e_.ChildPortfolio, e_.IsInitialLoad);
 }