Esempio n. 1
0
 /// <summary>
 /// Inserts the machines current IP into the database (mostly obsolete with a static IP assigned)
 /// </summary>
 private void UpdateIp()
 {
     try
     {
         if (iPHandler.HasIp())
         {
             iPHandler.UpdateIP(IPHandler.CheckIP());
         }
         else
         {
             iPHandler.CreateNewIp(IPHandler.CheckIP());
         }
     }
     catch (Exception error)
     {
         DataValidation.SaveError(error.ToString());
     }
 }