private bool setDeviceInfo() { try { if (sysWasChecked) { setSysInfo(); settings.checkSys(); settings.error = "Sys is ok"; } else { setSysInfo(); settings.checkSys(); } Console.WriteLine(settings.error); } catch (Exception ex) { Console.WriteLine(ex.ToString()); return(false); } return(true); }