Exemplo n.º 1
0
 public WeighingController()
     : base(new Log("log.txt",false))
 {
     _weighingUnit = new WeighingUnit(Logger,new Weight());
     _printer = new Printer(Logger);
     _display = new Display(Logger);
     _keyboard = new Keyboard(Logger);
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     var ws = new WeighingController();
     var logger = new Log("testlog.txt", true);
     logger.LogMsg("Haha");
     logger.LogMsg("Hihi");
     var wu = new WeighingUnit(logger, new Weight());
     wu.DoLog = true;
     var kb = new Keyboard(logger);
     kb.DoLog = true;
     wu.GetWeight();
     uint row, col;
     kb.GetNextKeypress(out row,out col);
 }