Exemple #1
0
 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
         });
     }
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public void AddCriterion(Criterion criterion)
 {
     CriterionList.Add(criterion);
 }