Beispiel #1
0
        public PathPage(Pathology path)
        {
            Title = path.name;

            Children.Add(new PathFlashcardPage(path));
            Children.Add(new MultipleChoiceQuestion());
        }
Beispiel #2
0
        public PathFlashcardPage(Pathology path)
        {
            this.Icon  = "Edit.png";
            this.Title = "Flashcards";


            if (!String.IsNullOrEmpty(path.url))
            {
                Image im = new Image {
                    Aspect = Aspect.AspectFit
                };

                im.Source = ImageSource.FromUri(new Uri(String.Format("{0}{1}", Config.API_ENDPOINT, path.url)));

                Content = new ScrollView {
                    Content = im
                };
            }
            else
            {
                Content = new Label {
                    Text = "This will have flashcards n stuff"
                };
            }
        }
		public PathPage (Pathology path)
		{
			Title = path.name;

			Children.Add (new PathFlashcardPage (path));
			Children.Add (new MultipleChoiceQuestion ());

		}
		public PathFlashcardPage (Pathology path)
		{
			this.Icon = "Edit.png";
			this.Title = "Flashcards";
		

			if(!String.IsNullOrEmpty(path.url)){
				Image im = new Image { Aspect = Aspect.AspectFit};

				im.Source = ImageSource.FromUri (new Uri (String.Format ("{0}{1}", Config.API_ENDPOINT, path.url)));

				Content = new ScrollView {
					Content = im
				};
			}else{
				Content = new Label { Text = "This will have flashcards n stuff" } ;
			}
		}