Lifting the Curse of Knowledge
public ActiveProduct(Product product, StringVersion driver, Side es) { Side = es; try { if (product == null) throw new Exception(“Can’t create an active product from a null product”); Logger.LogTimeStudyStart(“ActiveProduct create”); if (driver.IsEmpty()) CurrentDriver = product.Driver; else CurrentDriver = driver; _Device = Session.Instance.DeviceManager.CreateHI(es, CurrentDriver.ToString()); _Device.ConnectionStatus += Device_ConnectionStatus; _Device.BatteryStatus += Device_BatteryStatus; } catch (Exception ex) { ExceptionHandler.HandleException(ex);…
