public override void FinishedLaunching(NSObject notification) { // On the Mac, we are running on Mono - emit the Mono revision var monoVersion = "None"; Type monoRuntimeType; MethodInfo getDisplayNameMethod; if ((monoRuntimeType = typeof(object).Assembly.GetType("Mono.Runtime")) != null && (getDisplayNameMethod = monoRuntimeType.GetMethod( "GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.DeclaredOnly | BindingFlags.ExactBinding, null, Type.EmptyTypes, null)) != null) { monoVersion = string.Format("Mono {0}", getDisplayNameMethod.Invoke(null, null)); } logger.Info("Finished launching: .NET {0} ({1}); startedSlideshow = {2}", System.Environment.Version, monoVersion, startedSlideshow); if (!startedSlideshow) { Preferences<WatchThisPreferences>.Load( Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Preferences", "WatchThis.rangic.json")); controller = new ShowListController(); controller.Window.MakeKeyAndOrderFront(this); } }
public SlideshowListDelegate(ShowListController controller) { this.controller = controller; }