internal static ArticleEX SwitchToNewArticleObject(ArticleEX Old, ArticleEX New) { if(Old != null && Old.LogListener != null) Old.Close(); // remove old AWBLogListener from MyTrace collection New.InitialiseLogListener(); // create new listener and add to collection return New; }
internal static ArticleEX SwitchToNewArticleObject(ArticleEX Old, ArticleEX New) { if (Old != null && Old.LogListener != null) { Old.Close(); // remove old AWBLogListener from MyTrace collection } New.InitialiseLogListener(); // create new listener and add to collection return(New); }