Exemple #1
0
        public override void FinishedLaunching(NSObject notification)
        {
            mainWindowController = new MainWindowController();

            var presenter = new MvxMacViewPresenter(this, mainWindowController.Window);
            var setup     = new Setup(this, presenter);

            setup.Initialize();

            mainWindowController.Window.MakeKeyAndOrderFront(this);
        }
Exemple #2
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            var presenter = new MvxMacViewPresenter(this);

            var setup = new Setup(this, presenter);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();

            startup.Start();
        }
Exemple #3
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            _window = new NSWindow(new CGRect(200, 200, 400, 400), NSWindowStyle.Closable | NSWindowStyle.Resizable | NSWindowStyle.Titled,
                                   NSBackingStore.Buffered, false, NSScreen.MainScreen);

            var presenter = new MvxMacViewPresenter(this);
            var setup     = new Setup(this, presenter);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart> ();

            startup.Start();

            _window.MakeKeyAndOrderFront(this);

            return;
        }
        public override void DidFinishLaunching(NSNotification notification)
        {
            Window = new NSWindow(new CGRect(0, 0, 400, 300),
                                  NSWindowStyle.Titled | NSWindowStyle.Resizable | NSWindowStyle.Closable,
                                  NSBackingStore.Buffered, false, NSScreen.MainScreen);                // how big?
            Window.Title      = "TipCalc";
            Window.WillClose += (sender, e) =>
            {
                NSApplication.SharedApplication.Terminate(this);
            };

            var presenter = new MvxMacViewPresenter(this, Window);

            var setup = new Setup(this, presenter);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();

            startup.Start();

            Window.MakeKeyAndOrderFront(this);
        }