Beispiel #1
0
        public ReviewPage(int ID, String Message, String Title, double Stars)
        {
            InitializeComponent();

            Utilities.CreateStars(_FavouriteStarStack, Stars, typeof(ReviewPage));
            //for (int i = 0; i < Math.Floor(Stars);i++)
            //{
            //    _FavouriteStarStack.Children.Add(
            //        new Image
            //        {
            //            Source = Utilities.Source("ic_star_yellow.png", typeof(ReviewPage)),
            //            WidthRequest = 30,
            //            HeightRequest = 30
            //        });
            //}

            //if (Math.Floor(Stars) != Math.Ceiling(Stars))
            //{
            //    _FavouriteStarStack.Children.Add(
            //        new Image
            //        {
            //            Source = Utilities.Source("ic_half_star_yellow.png", typeof(ReviewPage)),
            //            WidthRequest = 30,
            //            HeightRequest = 30
            //        });
            //}
        }
Beispiel #2
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            Dictionary <String, String> Data = await MedicalPractitionerController.GetReview(ID);

            _Title.Text         = Data["Title"];
            _ReviewMessage.Text = Data["Review"];
            Utilities.CreateStars(_FavouriteStarStack, Convert.ToInt32(Data["Stars"]), typeof(ReviewPage));
        }
 public DoctorProfile(int ID, int DoctorID, double Location, double Stars, int Fee, String WorkTime)
 {
     InitializeComponent();
     dp_doctor.Source = Utilities.Source("doctor_ogar.JPG", typeof(DoctorProfile));
     Utilities.CreateStars(_StarsStack, Stars, typeof(DoctorProfile));
     _Fee.Text          = Fee + Utilities.Currency + "/Session";
     _WorkingTime.Text  = WorkTime;
     _Location.Text     = Location + Utilities.DistanceType;
     _ClockIcon.Source  = Utilities.Source("ic_access_time_ash.png", typeof(DoctorProfile));
     _DollarIcon.Source = Utilities.Source("ic_monetizaion_on_ash.png", typeof(DoctorProfile));
 }
        public MedPractProfile(MedPractProfileDetails MPPD)
        {
            InitializeComponent();
            dp_doctor.Source = Utilities.Source("doc_anim.jpg", typeof(DoctorProfile));

            Utilities.CreateStars(_StarsStack, MPPD.Stars, typeof(DoctorProfile));

            _DoctorName.Text   = MPPD.MPName;
            _Address.Text      = MPPD.Address;
            _Description.Text  = MPPD.Description;
            _Fee.Text          = MPPD.Fee + Utilities.Currency + "/Session";
            _WorkingTime.Text  = MPPD.WorkTime;
            _Location.Text     = MPPD.Location + Utilities.DistanceType;
            _ClockIcon.Source  = Utilities.Source("ic_access_time_ash.png", typeof(DoctorProfile));
            _DollarIcon.Source = Utilities.Source("ic_monetizaion_on_ash.png", typeof(DoctorProfile));


            this.MPPD = MPPD;
        }