Пример #1
0
        public App()
        {
            // The root page of your application
            var homePage = new ViewMenu.View();
            this.MainPage = new NavigationPage(homePage);

            InitializeData();

            _messagebus.Subscribe(ViewMenu.Messages.REQUEST_EDIT,
                async obj => { await MainPage.Navigation.PushAsync(new EditContent.View(obj as Content), animated: true); });

            _messagebus.Subscribe("REQUEST_PREVIOUS_VIEW",
                async obj => await MainPage.Navigation.PopAsync(animated: true));
        }
Пример #2
0
        public App()
        {
            // The root page of your application
            var homePage = new ViewMenu.View();

            this.MainPage = new NavigationPage(homePage);

            InitializeData();

            _messagebus.Subscribe(ViewMenu.Messages.REQUEST_EDIT,
                                  async obj => { await MainPage.Navigation.PushAsync(new EditContent.View(obj as Content), animated: true); });

            _messagebus.Subscribe("REQUEST_PREVIOUS_VIEW",
                                  async obj => await MainPage.Navigation.PopAsync(animated: true));
        }
Пример #3
0
        public App()
        {
            InitializeComponent();

            // _databaseFactory.PromiseDBs();
            _ioFactory.PromiseFileReader();

            _profile = new ProfileServer().GetProfile();

            _autonomy.Activate();

            // The root page of your application
            var homePage = new ViewMenu.View(); // SearchCustomers.View();
            MainPage = new NavigationPage(homePage) { BarBackgroundColor = Color.Transparent };
            MainPage.Padding = new Thickness(5);

            _viewFactory.Promise(MainPage);
        }
Пример #4
0
        public App()
        {
            InitializeComponent();

            // _databaseFactory.PromiseDBs();
            _ioFactory.PromiseFileReader();

            _profile = new ProfileServer().GetProfile();

            _autonomy.Activate();

            // The root page of your application
            var homePage = new ViewMenu.View(); // SearchCustomers.View();

            MainPage = new NavigationPage(homePage)
            {
                BarBackgroundColor = Color.Transparent
            };
            MainPage.Padding = new Thickness(5);

            _viewFactory.Promise(MainPage);
        }