public void CheckCode(string result) { editPass.Text = ""; if (!stands.Exists(x => x.Pass == result)) { DisplayAlert("Chyba", "Tento kód není platný", "Ok"); return; } Stand stand = stands.First(x => x.Pass == result); if (stand.Visited) { DisplayAlert(" ", "Tento kód jste již zadali", "Ok"); return; } stand.Visited = true; Settings.Stands += stands.IndexOf(stand) + ";"; if (!stands.Exists(x => !x.Visited)) { Submit(); } Show(); }
public Event(XmlNode node) { Name = node["Name"].InnerText; From = DateTime.Parse(node["From"].InnerText); To = DateTime.Parse(node["To"].InnerText); foreach (XmlNode stand in node["Stands"].ChildNodes) { Stands.Add(Stand.NewStand(stand)); } }