Exemple #1
0
 private void GenerateEFilmModel(CardModel cardModel)
 {
     try
     {
         var filmCard     = cardModel;
         var tempFilmCard = filmCard;  //处理 Resharper 提示Access to modified closure
         _renderWindow.Dispatcher.Invoke(new Action(() => _renderWindow.AddFilmCard(tempFilmCard)));
     }
     catch (Exception ex)
     {
         Logger.LogFuncException(ex.Message + ex.StackTrace);
     }
 }