Esempio n. 1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            Window.SetOwner(this);
            Window.Delegate = new Delegate()
            {
                owner = this
            };

            loadedMessagesControlAdapter = new LoadedMessagesControlAdapter();
            loadedMessagesControlAdapter.View.MoveToPlaceholder(loadedMessagesPlaceholder);

            sourcesManagementControlAdapter = new SourcesManagementControlAdapter();
            sourcesManagementControlAdapter.View.MoveToPlaceholder(sourcesManagementViewPlaceholder);

            searchPanelControlAdapter = new SearchPanelControlAdapter();
            searchPanelControlAdapter.View.MoveToPlaceholder(searchPanelViewPlaceholder);

            bookmarksManagementControlAdapter = new BookmarksManagementControlAdapter();
            bookmarksManagementControlAdapter.View.MoveToPlaceholder(bookmarksManagementViewPlaceholder);

            searchResultsControlAdapter = new SearchResultsControlAdapter();
            searchResultsControlAdapter.View.MoveToPlaceholder(searchResultsPlaceholder);

            hlFiltersManagerControlAdapter = new FiltersManagerControlController();
            hlFiltersManagerControlAdapter.View.MoveToPlaceholder(highlightingManagementPlaceholder);

            statusPopupControlAdapter = new StatusPopupControlAdapter(x => SetToolbarItemVisibility(stopLongOpButton, x));
            statusPopupControlAdapter.View.MoveToPlaceholder(statusPopupPlaceholder);
            statusPopupPlaceholder.Hidden = true;

            timelinePanelControlAdapter = new TimelinePanelControlAdapter();
            timelinePanelControlAdapter.View.MoveToPlaceholder(timelinePanelPlaceholder);

            SetToolbarItemVisibility(pendingUpdateNotificationButton, false);
            pendingUpdateNotificationButton.ToolTip = "Software update downloaded. Click to restart app and apply update.";

            SetToolbarItemVisibility(stopLongOpButton, false);
            stopLongOpButton.ToolTip = "Stop";

            tabView.Delegate = new TabViewDelegate()
            {
                owner = this
            };

            ComponentsInitializer.WireupDependenciesAndInitMainWindow(this);

            viewEvents.OnLoad();
        }
Esempio n. 2
0
 public override void AwakeFromNib()
 {
     base.AwakeFromNib();
     filtersManagerControlController = new FiltersManagerControlController();
     filtersManagerControlController.View.MoveToPlaceholder(filtersManagerViewPlaceholder);
 }
Esempio n. 3
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            Window.SetOwner(this);
            Window.Delegate = new Delegate()
            {
                owner = this
            };

            loadedMessagesControlAdapter = new LoadedMessagesControlAdapter();
            loadedMessagesControlAdapter.View.MoveToPlaceholder(loadedMessagesPlaceholder);

            sourcesManagementControlAdapter = new SourcesManagementControlAdapter();
            sourcesManagementControlAdapter.View.MoveToPlaceholder(sourcesManagementViewPlaceholder);

            searchPanelControlAdapter = new SearchPanelControlAdapter();
            searchPanelControlAdapter.View.MoveToPlaceholder(searchPanelViewPlaceholder);

            bookmarksManagementControlAdapter = new BookmarksManagementControlAdapter();
            bookmarksManagementControlAdapter.View.MoveToPlaceholder(bookmarksManagementViewPlaceholder);

            searchResultsControlAdapter = new SearchResultsControlAdapter();
            searchResultsControlAdapter.View.MoveToPlaceholder(searchResultsPlaceholder);

            hlFiltersManagerControlAdapter = new FiltersManagerControlController();
            hlFiltersManagerControlAdapter.View.MoveToPlaceholder(highlightingManagementPlaceholder);

            statusPopupControlAdapter = new StatusPopupControlAdapter(x => SetToolbarItemVisibility(stopLongOpButton, x));
            statusPopupControlAdapter.View.MoveToPlaceholder(statusPopupPlaceholder);
            statusPopupPlaceholder.Hidden = true;

            timelinePanelControlAdapter = new TimelinePanelControlAdapter();
            timelinePanelControlAdapter.View.MoveToPlaceholder(timelinePanelPlaceholder);

            SetToolbarItemVisibility(pendingUpdateNotificationButton, false);

            SetToolbarItemVisibility(stopLongOpButton, false);
            stopLongOpButton.ToolTip = "Stop";

            tabView.Delegate = new TabViewDelegate()
            {
                owner = this
            };

            InitTheme();

            ComponentsInitializer.WireupDependenciesAndInitMainWindow(this);

            viewModel.OnLoad();

            var instancesCount = instancesCounter.Count;

            if (instancesCount > 1)
            {
                var index = instancesCount % 5;
                Window.SetFrame(new CoreGraphics.CGRect(
                                    index * 20,
                                    index * 20,
                                    Window.Frame.Width, Window.Frame.Height), true, true);
            }
        }