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)); }
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); }
public MySelfController (MainData mainData) : base (new MySelfPage(), mainData.SelfData) { }
public BookingsController (MainData mainData) : base(new BookingsPage(), mainData.BookingsData) { View.ToolbarItems.Add(new ToolbarItem ("History", "icon_latest.png", ViewBookingHistories)); }