private void AddCriterion() { if (string.IsNullOrWhiteSpace(_criterion)) { _page.DisplayAlert("Error", "String can not be empty", "Ok"); } else { CriterionList.Add(new FeedbackModel { Criterion = _criterion, SliderValue = _sliderValue }); } }
private void loadCriteria() { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(Path.Combine(XMCDADirectory, "criteria.xml")); // this file contains only one main block - <criteria> foreach (XmlNode xmlNode in xmlDocument.DocumentElement.ChildNodes[0]) { Criterion criterion = new Criterion() { Name = xmlNode.Attributes["name"].Value, ID = xmlNode.Attributes["id"].Value }; CriterionList.Add(criterion); } }
public void AddCriterion(Criterion criterion) { CriterionList.Add(criterion); }