static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args) { string filepath = null; if (args.LoadedAssembly.IsDynamic) { // no file } else { filepath = args.LoadedAssembly.Location; } AbnakiLog.FileInfo(filepath, "Load " + args.LoadedAssembly.GetName()); }
void InvokeRestoringPanelLayout(FileInfo fi) { if (fi.Exists) { var h = RestoringPanelLayout; if (h != null) { using (new WaitCursor()) { h(fi); } } } else { AbnakiLog.FileInfo(fi, "Nonexistent, ignored"); } }