Example #1
0
        public override bool OpenFile(NSApplication sender, string filename)
        {
            if (mainWindowController == null)
            {
                mainWindowController = new MainWindowController();
                mainWindowController.Window.MakeKeyAndOrderFront(this);
            }

            return mainWindowController.OpenFolderDirectly(filename);
        }
Example #2
0
        public override void FinishedLaunching(NSObject notification)
        {
            var urlList = new NSFileManager().GetUrls(NSSearchPathDirectory.LibraryDirectory, NSSearchPathDomain.User);

            Preferences.Load(Path.Combine(
                urlList[0].Path,
                "Preferences",
                "com.rangic.MapThis.json"));

            Rangic.Utilities.Geo.OpenStreetMapLookupProvider.UrlBaseAddress = Preferences.Instance.BaseLocationLookup;
            logger.Info("Resolving placenames via {0}", Rangic.Utilities.Geo.OpenStreetMapLookupProvider.UrlBaseAddress);

            mainWindowController = new MainWindowController();
            mainWindowController.Window.MakeKeyAndOrderFront(this);
        }
 public SplitViewDelegate(MainWindowController controller)
 {
     this.controller = controller;
 }
 public MainWindowDelegate(MainWindowController controller)
 {
     this.controller = controller;
 }
Example #5
0
 public SearchTextFieldDelegate(MainWindowController controller)
 {
     this.controller = controller;
 }