public RecentEventsController (IntPtr handle) : base (handle) { UIImage hamburgericon = UIImage.FromFile("Menu Filled-20"); NavigationItem.LeftBarButtonItem = new UIBarButtonItem(hamburgericon, UIBarButtonItemStyle.Plain, delegate { ParentController.getNavigationMenu().ToggleMenu(); }); eventItemAdapter = new EventItemAdapter(); recipientListItemAdapter = new RecipientListItemAdapter(); }
public CalendarListController(List<EventItem> eventList) : base() { UIImage hamburgericon = UIImage.FromFile("Menu Filled-20"); NavigationItem.LeftBarButtonItem = new UIBarButtonItem("Back", UIBarButtonItemStyle.Plain, delegate { NavigationController.PopViewController(true); }); eventItemAdapter = new EventItemAdapter(); recipientListItemAdapter = new RecipientListItemAdapter(); myEventList = eventList; }
public CalendarController() : base(new RootElement("Event Details"), true) { UIImage hamburgericon = UIImage.FromFile("Menu Filled-20"); NavigationItem.LeftBarButtonItem = new UIBarButtonItem(hamburgericon, UIBarButtonItemStyle.Plain, delegate { ParentController.getNavigationMenu().ToggleMenu(); }); eventItemAdapter = new EventItemAdapter(); recipientListItemAdapter = new RecipientListItemAdapter(); }
public async Task RefreshItemsFromTableAsync(EventItemAdapter adapter) { try { var eventList = await IoC.Dbconnect.getEventSyncTable().ToListAsync(); adapter.Clear(); foreach (EventItem currentEvent in eventList) adapter.Add(currentEvent); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); } }
public List<EventItem> getEventsByEmployeeID(int employeeID, EventItemAdapter eventAdapter) { List<EventItem> filteredItems = new List<EventItem>(); foreach (RecipientListItem currentEvent in items) { if (currentEvent.EmployeeID == employeeID) { EventItem selectedEvent = eventAdapter.getEventByIDNotDeleted(currentEvent.EventID); if (selectedEvent != null) { filteredItems.Add(selectedEvent); } } } return filteredItems; }
public override void ViewDidLoad() { base.ViewDidLoad(); employeeItemAdapter = new EmployeeItemAdapter(); eventItemAdapter = new EventItemAdapter(); recipientListItemAdapter = new RecipientListItemAdapter(); loginButton = LoginButton; EditTextEmployeeID = Username; EditTextPassword = Password; createUserButton = CreateUser; loginButton.TouchUpInside += (object sender, EventArgs e) => { Login(); }; createUserButton.TouchUpInside += (object sender, EventArgs e) => { ValidateCreateUser(); }; }