public OpenClosePrinciple(ILoggerFactory logger, IOpenClose <Entity> openCloseRectangle, Entity entity) { _logger = logger; _openCloseEntity = openCloseRectangle; ComputarArea(openCloseRectangle, entity); }
public bool SetTimers(TimeSpan inizio, TimeSpan durata,IOpenClose handlers) { TimeSpan fine = inizio + durata; #region timer apertura SetTimer(inizio, handlers.Open); #endregion #region timer chiusura SetTimer(fine, handlers.Close); #endregion return true; }
public void OpenerDevice(IOpenClose obj) { Console.WriteLine("Открыть дверцу. Введите 3"); Console.WriteLine("Закрыть дверцу. Введите 4"); }
public void AddOpenClose(IOpenClose method) { _methods.Add(method); }
public void SetTimer(DateTime inizio, TimeSpan durata, IOpenClose handlers) { Timer tim = new Timer(); }
public void ComputarArea(IOpenClose <Entity> openCloseRectangle, Entity entity) { double area = openCloseRectangle.CalcularArea(entity); }