private void UpdSettings(Settings settings) { PsysSettings = settings.PsysSettings; PaceSettings = settings.PaceSettings; AmmetrSettins = settings.AmmetrSettins; JsonReportSettings = settings.JsonReportSettings; PathToDb = settings.PathToDb; DbPassword = settings.DbPassword; UsedStandDatabase = settings.UsedStandDatabase; UsedRemoteControl = settings.UsedRemoteControl; UsedAutomaticSortingOut = settings.UsedAutomaticSortingOut; RemoteControlIp = settings.RemoteControlIp; if (!string.IsNullOrEmpty(settings.RemoteControlVer)) { RemoteControlVer = settings.RemoteControlVer; } else { RemoteControlVer = "v1.0"; } PressSystemItem = settings.PressSystemItem; ShowVariation = settings.ShowVariation; TestPause100 = settings.TestPause100; Password = settings.Password; }
public Settings() { PsysSettings = new PressureSystemSettings(); PaceSettings = new PaceSettings(); AmmetrSettins = new AmmetrSettins(); JsonReportSettings = new JsonReportSettings(); }
public JsonAdapter(JsonReportSettings settings) { this.settings = settings; }