示例#1
0
        void Icon2_Tapped(object sender, EventArgs args)
        {
            var page = new CustomerPage();

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

            //this.Title = "Customer";
            shedulerStaff.Text           = "Customer";
            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;
            }
        }