コード例 #1
0
        void Icon3_Tapped(object sender, EventArgs args)
        {
            var page = new ActivityPage();

            Placeholder.Content          = page.Content;
            CALENDERLabelColor.TextColor = Xamarin.Forms.Color.Black;
            CUSTOMERLabelColor.TextColor = Xamarin.Forms.Color.Black;
            ACTIVITYLabelColor.TextColor = Xamarin.Forms.Color.MediumTurquoise;
            ACCOUNTLabelColor.TextColor  = Xamarin.Forms.Color.Black;
            icon1Enable.IsEnabled        = true;
            icon2Enable.IsEnabled        = true;
            icon3Enable.IsEnabled        = false;
            icon4Enable.IsEnabled        = true;
            Application.Current.Properties.Remove("FloatingCalenderPageName");
            Application.Current.Properties.Remove("FloatingCustomerPageName");
            Application.Current.Properties.Remove("FloatingAccountPageName");
            Application.Current.Properties["FloatingActivityPageName"] = "ActivityPage";

            //this.Title = "Activity";
            shedulerStaff.Text           = "Activity";
            dropdownArrow.IsVisible      = false;
            CalendarIconButton.IsVisible = false;
            // this.ToolbarItems.Remove(CalendarIconButton);
        }
コード例 #2
0
        public SetAppointmentPage(string selectedName, string empName, string weekDateDays)
        {
            DateDaysofWeek = weekDateDays;
            selectesPageN  = selectedName;
            InitializeComponent();
            GetStaff();
            EmpName = empName;
            if (selectedName == "selectedPageCustomer")
            {
                var pages = new CustomerPage();
                Placeholder.Content = pages.Content;
                //this.Title = "Customer";
                shedulerStaff.Text           = "Customer";
                dropdownArrow.IsVisible      = false;
                CalendarIconButton.IsVisible = false;
                // this.ToolbarItems.Remove(CalendarIconButton);
            }
            else if (selectedName == "CustomerPage")
            {
                var page = new CustomerPage();
                Placeholder.Content = page.Content;
                //this.Title = "Customer";
                shedulerStaff.Text           = "Customer";
                dropdownArrow.IsVisible      = false;
                CalendarIconButton.IsVisible = false;
            }
            else if (selectedName == "ActivityPage")
            {
                var page = new ActivityPage();
                Placeholder.Content = page.Content;
                //this.Title = "Activity";
                shedulerStaff.Text           = "Activity";
                dropdownArrow.IsVisible      = false;
                CalendarIconButton.IsVisible = false;
            }
            else if (selectedName == "AccountPage")
            {
                //Application.Current.Properties["FloatingAccountPageName"] = "AccountPage";
                var page = new AccountPage();
                Placeholder.Content = page.Content;
                //this.Title = "Account";
                shedulerStaff.Text           = "Account";
                dropdownArrow.IsVisible      = false;
                CalendarIconButton.IsVisible = false;
            }
            else
            {
                var page = new CalenderPage(DateDaysofWeek);
                Placeholder.Content = page.Content;
                this.Title          = "Calender";
                if (empName != "")
                {
                    shedulerStaff.Text = empName;
                }
                else
                {
                    shedulerStaff.Text = "All Schedules";
                }

                Application.Current.Properties["FloatingCalenderPageName"] = "CalenderPage";

                middleF.HeightRequest = App.ScreenHeight - 180;
            }
        }