Example #1
0
 public void SaveVillagesToDb(IList<MapCoordinates> coordinateses)
 {
     Log.Debug("SaveVillagesToDb");
     DataBase dataBase = new DataBase();
     dataBase.SaveVillages(coordinateses);
 }
Example #2
0
 public void Save()
 {
     DataBase dataBase = new DataBase();
     if (dataBase.SaveReports(reports) && deleteReports)
     {
         browser.GoTo(String.Format(CultureInfo.InvariantCulture, "{0}berichte.php?t=3", Server));
         //CheckBoxCollection checkBoxes = browser.CheckBoxes;
         foreach (Report report in reports)
         {
             CheckBox checkBox = browser.CheckBox(Find.ByValue(report.Id.ToString()));
             if (checkBox.Exists)
             {
                 checkBox.Checked = true;
             }
         }
         //<input type="image" src="img/x.gif" class="dynamic_img " id="btn_delete" alt="delete" value="delete" name="del"/>
         Image image = browser.Image(Find.ById("btn_delete"));
         if (image.Exists)
         {
             image.Click();
         }
     }
 }