public MemberFunctionsPage(Controls.MemberPlacard TheMember) { InitializeComponent(); SelectedMember = TheMember; lstMemberStuff.Children.Add(SelectedMember); }
public MemberTeam(Controls.MemberPlacard TheMember) { InitializeComponent(); SelectedMember = TheMember; lstMemberStuff.Children.Add(SelectedMember); GetTeam(); }
public MemberEncounterNotes(Controls.MemberPlacard TheMember) { InitializeComponent(); SelectedMember = TheMember; lstMemberStuff.Children.Add(SelectedMember); GetEncounterNotes(); }
public MemberCreateEncounterNote(MemberPlacard TheMember) { InitializeComponent(); SelectedMember = TheMember; lstMemberStuff.Children.Add(SelectedMember); GetAuths(); }
public MemberCreateCollateralNote(Controls.MemberPlacard TheMember) { InitializeComponent(); SelectedMember = TheMember; lstMemberStuff.Children.Add(SelectedMember); NoteTypePicker.ItemsSource = Settings.Lookups.LOOKUPPROGRESSNOTETYPES; ContactTypePicker.ItemsSource = Settings.Lookups.LOOKUPNOTECONTACTTYPE; ContactDate.MaximumDate = DateTime.Now; // cannot pick a date in the future for contact //GetCollateralNotes(); }
public MemberMainPage() { InitializeComponent(); if (Settings.LOGGEDIN) { lblWelcome.Text = "Welcome " + Settings.FIRSTNAME + " " + Settings.LASTNAME; Controls.MemberPlacard m = new Controls.MemberPlacard(Settings.MemberLoggedIn.FirstName, Settings.MemberLoggedIn.LastName, Settings.MemberLoggedIn); SelectedMember = m; //GetMOTD(); //GetLookups(); //GetMyCaseLoad(); } else { Application.Current.MainPage = new Login(); } }
async void GetMyCaseLoad() { string URL = Settings.BASEURL;//""; string u = Settings.USERNAME; URL += "/Login/GetCaseLoad"; HttpClient c = new HttpClient(); c.DefaultRequestHeaders.Add("LOGIN", u); var response = await c.GetStringAsync(URL); var theresult = JsonConvert.DeserializeObject <List <MemberDetailsShort> >(response); int evenodd = 0; foreach (MemberDetailsShort s in theresult) { evenodd += 1; Controls.MemberPlacard m = new Controls.MemberPlacard(s.FirstName, s.LastName, s); m.SetBackground(evenodd); TapGestureRecognizer trec = new TapGestureRecognizer(); trec.NumberOfTapsRequired = 1; trec.Tapped += Trec_Tapped; m.GestureRecognizers.Add(trec); lstMyCaseLoad.Children.Add(m); } //lvMYCASELOAD.ItemsSource = theresult; }