public ProfilePage()
        {
            InitializeComponent();

            ParentPage = this.Parent as TabbedPage;

            /** if method which controls the display of image in the profilepage**/
            if (Device.RuntimePlatform == Device.UWP || Device.RuntimePlatform == Device.iOS)
            {
                _ForUWP.IsVisible     = true;
                _ForAndroid.IsVisible = false;
            }

            _BgImage.Source            = Utilities.Source("topbar.jpg", typeof(ProfilePage));
            _ProfilePic.Source         = Utilities.Source("IMG_5204.JPG", typeof(ProfilePage));
            _AndroidProfilePic.Source  = Utilities.Source("doc_anim.jpg", typeof(ProfilePage));
            _MedicalHistoryIcon.Source = Utilities.Source("ic_explore.png", typeof(ProfilePage));
            _SettingsIcon.Source       = Utilities.Source("ic_settings.png", typeof(ProfilePage));
            _HelpIcon.Source           = Utilities.Source("ic_help.png", typeof(ProfilePage));
            _AboutIcon.Source          = Utilities.Source("ic_info.png", typeof(ProfilePage));
            _LocationIcon.Source       = Utilities.Source("baseline_location_on_black_48dp.png", typeof(ProfilePage));

            if (!IsMedic)
            {
                /**hide medpract elements from normal user**/
                Utilities.AuthControlHider(_ParentStack, "For-Doctor");
            }
            else
            {
                Utilities.AuthControlHider(_ParentStack, "For-User");
            }

            Utilities.IOSPageFitter(_ParentStack, Device.RuntimePlatform, 0, Utilities.IOSPaddingTop, 0, 0);
        }
Esempio n. 2
0
        public SettingsPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);

            switch (Device.RuntimePlatform)
            {
            case Device.Android:
                //Utilities.AuthControlHider()
                _ForIOS.IsVisible = false;
                break;

            case Device.iOS:
                _ForUWP.IsVisible     = true;
                _ForAndroid.IsVisible = false;
                break;

            case Device.UWP:
                _ForUWP.IsVisible     = true;
                _ForAndroid.IsVisible = false;
                break;
            }
            ;

            _BgImage.Source            = Utilities.Source("topbar.jpg", typeof(SettingsPage));
            _ProfilePic.Source         = Utilities.Source("doc_anim.jpg", typeof(SettingsPage));
            _AndroidProfilePic.Source  = Utilities.Source("doc_anim.jpg", typeof(SettingsPage));
            _MessagesIcon.Source       = Utilities.Source("ic_message.png", typeof(SettingsPage));
            _PhoneNoIcon.Source        = Utilities.Source("ic_local_phone_ash.png", typeof(SettingsPage));
            _UsernameIcon.Source       = Utilities.Source("ic_person_outline.png", typeof(SettingsPage));
            _FullNameIcon.Source       = Utilities.Source("ic_settings.png", typeof(SettingsPage));
            _DOBIcon.Source            = Utilities.Source("ic_date_range.png", typeof(SettingsPage));
            _2faIcon.Source            = Utilities.Source("ic_lock.png", typeof(SettingsPage));
            _ChangePasswordIcon.Source = Utilities.Source("ic_lock.png", typeof(SettingsPage));
            _LocationIcon.Source       = Utilities.Source("baseline_location_on_black_48dp.png", typeof(SettingsPage));

            Utilities.IOSPageFitter(_ParentStack, Device.RuntimePlatform, 0, Utilities.IOSPaddingTop, 0, 0);


            /**bool IsMedic determines which control would be shown to the user by hiding elements of a certain group class**/

            if (!IsMedic)
            {
                /**hide medpract elements from normal user**/
                Utilities.AuthControlHider(_ParentStack, "For-Doctor");
            }
            else
            {
                Utilities.AuthControlHider(_ParentStack, "For-User");
            }

            Utilities.IOSPageFitter(_ParentStack, Device.RuntimePlatform, 0, Utilities.IOSPaddingTop, 0, 0);
        }
        public AuthorizationPinPage(int ID, bool isMedic)
        {
            InitializeComponent();
            this.isMedic = isMedic;

            if (isMedic)
            {
                Utilities.AuthControlHider(_ParentGrid, "For-User");
            }
            else
            {
                Utilities.AuthControlHider(_ParentGrid, "For-Doctor");
            }
        }
 public AppointmentHistoryPage(int ID, bool IsMedic)
 {
     InitializeComponent();
     this.IsMedic = IsMedic;
     if (IsMedic)
     {
         _ParentStack.Children.Add(AppointmentHistoryTemplate.TemplateForDoctor02(0, 0, "Mr. Silas", "30 Cherubium Junction, \nWetheral Road, \nOwerri Imo State", "9:30AM", Status.Approved, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.", "000"));
         _ParentStack.Children.Add(AppointmentHistoryTemplate.TemplateForDoctor02(0, 0, "Mr. Jendy", "20 IBC, \nOrji, \nOwerri Imo State", "11:30AM", Status.Waiting, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.", "000"));
     }
     else
     {
         _ParentStack.Children.Add(AppointmentHistoryTemplate.TemplateForUser01(0, HistoryType.Doctor, "Dr. Towel", "35 Cherubium Junction, \nWetheral Road, \nOwerri Imo State"));
         _ParentStack.Children.Add(AppointmentHistoryTemplate.TemplateForUser01(0, HistoryType.Hospital, "Dr. Pan", "40 Cherubium Junction, \nWetheral Road, \nOwerri Imo State"));
         Utilities.AuthControlHider(_ParentStack, "For-Doctor");
     }
 }
 public AppointmentHistoryPage()
 {
     InitializeComponent();
     Utilities.AuthControlHider(_ParentStack, "For-Doctor");
 }