Exemplo n.º 1
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            SimpleAuth.Mac.WebAuthenticatorWebView.UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1"
                                                               AudioOutputHelper.Init();
            var version = Device.SystemVersion;

            //window.StyleMask |= NSWindowStyle.FullSizeContentView;
            //window.TitlebarAppearsTransparent = true;
            SetupApp();
            // Insert code here to initialize your application
            _sidebarOutlineView.SizeLastColumnToFit();
            _sidebarOutlineView.WeakDataSource = this;
            _sidebarOutlineView.ReloadData();
            _sidebarOutlineView.FloatsGroupRows = false;

            _sidebarOutlineView.RowSizeStyle = NSTableViewRowSizeStyle.Default;

            // Expand all the root items; disable the expansion animation that normally happens
            NSAnimationContext.BeginGrouping();
            NSAnimationContext.CurrentContext.Duration = 0;
            _sidebarOutlineView.ExpandItem(null, true);
            NSAnimationContext.EndGrouping();
            CheckLogin();

                        #pragma warning disable 4014
            App.Start();
                        #pragma warning restore 4014

            ApiManager.Shared.StartSync();
            fullScreenController = new VideoPlaybackWindowController();
            NotificationManager.Shared.ToggleFullScreenVideo += NotificationManager_Shared_ToggleFullScreenVideo;
        }
Exemplo n.º 2
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            AudioOutputHelper.Init();
            var version = Device.SystemVersion;

            //window.StyleMask |= NSWindowStyle.FullSizeContentView;
            //window.TitlebarAppearsTransparent = true;
            SetupApp();
            // Insert code here to initialize your application
            _sidebarOutlineView.SizeLastColumnToFit();
            _sidebarOutlineView.WeakDataSource = this;
            _sidebarOutlineView.ReloadData();
            _sidebarOutlineView.FloatsGroupRows = false;

            _sidebarOutlineView.RowSizeStyle = NSTableViewRowSizeStyle.Default;

            // Expand all the root items; disable the expansion animation that normally happens
            NSAnimationContext.BeginGrouping();
            NSAnimationContext.CurrentContext.Duration = 0;
            _sidebarOutlineView.ExpandItem(null, true);
            NSAnimationContext.EndGrouping();
            CheckLogin();

                        #pragma warning disable 4014
            App.Start();
                        #pragma warning restore 4014

            ApiManager.Shared.StartSync();
            fullScreenController = new VideoPlaybackWindowController();
            NotificationManager.Shared.ToggleFullScreenVideo += NotificationManager_Shared_ToggleFullScreenVideo;
        }