public static void Save(AISettings newSettings) { Settings.Default.DeepStackIPAddress = newSettings.AILocation; Settings.Default.DeepStackPort = newSettings.AiPort; Settings.Default.TimePerFrame = newSettings.TimePerFrame; Settings.Default.MaxEventTime = newSettings.MaxEventTime; Settings.Default.EventInterval = newSettings.EventInterval; Settings.Default.CurrentCameraPath = newSettings.CurrentCameraPath; Settings.Default.CurrentCameraPrefix = newSettings.CurrentCameraPrefix; Settings.Default.DeepstackSetup = true; Settings.Default.Save(); }
public static AISettings Load() { AISettings foundSettings = new AISettings(); { foundSettings.AILocation = Settings.Default.DeepStackIPAddress; foundSettings.AiPort = Settings.Default.DeepStackPort; foundSettings.TimePerFrame = Settings.Default.TimePerFrame; foundSettings.MaxEventTime = Settings.Default.MaxEventTime; foundSettings.EventInterval = Settings.Default.EventInterval; foundSettings.CurrentCameraPath = Settings.Default.CurrentCameraPath; foundSettings.CurrentCameraPrefix = Settings.Default.CurrentCameraPrefix; }; return(foundSettings); }