Ejemplo n.º 1
0
		public SearchController (MainData helpsData) : base (new SearchView())
		{
			HelpsData = helpsData;

			helpsData.BookingsData.UpdateData ();

			foreach (WorkshopSet workshopSet in HelpsData.WorkShopsData.Sets) {

				if (workshopSet.SetWorkshops == null) {
					string localData = App.Setting.GetSettingValue (Workshops.localKey + workshopSet.Id);

					if (localData != null) {
						if (!localData.Equals ("")) {
							workshopSet.SetWorkshops = new Workshops ();
							workshopSet.SetWorkshops.HelpsData = helpsData;
							workshopSet.SetWorkshops.RelatedWorkshopSet = workshopSet;
							workshopSet.SetWorkshops.DidReadResponse (localData);
						}
					}
				}
			}
		}
 public WorkShopsSetsController(MainData mainData)
     : base(new WorkShopSetsPage(), mainData.WorkShopsData)
 {
     View.ToolbarItems.Add(new ToolbarItem ("Search", "ic_search.png", OnPressedSearch));
 }
Ejemplo n.º 3
0
        public void BuildTable(MainData data)
        {
            SelfInfo info = data.SelfData.Info;
            BasicInfoSection.Clear ();

            AddTextLabelCell ("ID", info.StudentId);

            AddTextLabelCell ("Preferred Name", info.PreferredName, () =>
                PopEntryEditor ("Preferred Name", "Name", info.PreferredName, changedText => info.PreferredName = changedText));

            AddTextLabelCell ("Gender", info.Gender, () =>
                PopSelectionEditor ("Gender", genderies, selection => info.Gender = selection));

            AddTextLabelCell ("Degree", info.Degree, () =>
                PopSelectionEditor ("Degree", degrees, selection => info.Degree = selection));

            AddTextLabelCell ("First Language", info.FirstLanguage, () =>
                PopSelectionEditor ("First Language", languages, selection => info.FirstLanguage = selection));

            AddTextLabelCell ("Country", info.CountryOrigin, () =>
                PopSelectionEditor ("Country", countries, selection => info.CountryOrigin = selection));

            AddTextLabelCell ("Contact number", info.AltContact, () =>
                PopEntryEditor ("Contant number", "Number", info.AltContact, changedText => info.AltContact = changedText));

            (SelfTable.Root = new TableRoot ()).Add (BasicInfoSection);
        }
Ejemplo n.º 4
0
		public MySelfController (MainData mainData) : base (new MySelfPage(), mainData.SelfData)
		{
		}
Ejemplo n.º 5
0
		public BookingsController (MainData mainData) : base(new BookingsPage(), mainData.BookingsData)
		{
			View.ToolbarItems.Add(new ToolbarItem ("History", "icon_latest.png", ViewBookingHistories));
		}