partial void TChePrFind(Foundation.NSObject sender) { if (Backendoptions.IsClassSet()) { if (Backendoptions.WasPresanceChecked(TPrUnit.StringValue)) { var lists = Backendoptions.GetPresanceThiSUnit(TPrUnit.StringValue); TCheckStudent.StringValue = lists.Item1; TCheckStudent.Editable = false; TCheckPresance.StringValue = lists.Item2; TCheckPresance.Editable = false; TChePrErr.StringValue = "Sprawdzono już obecność na tej jednostce"; } else { var classstudents = Backendoptions.GetStudents(); string studentsstring = "", presance = ""; foreach (var st in classstudents) { studentsstring = studentsstring + st + "\n"; presance += "nie/obecny/usprawiedliwiony/inny\n"; } TCheckStudent.StringValue = studentsstring; TCheckStudent.Editable = false; TCheckPresance.StringValue = presance; TCheckPresance.Editable = true; TChePrErr.StringValue = "Status:"; } } else { TChePrErr.StringValue = "Nie ustawiono klasy"; } }