Ejemplo n.º 1
0
 public TerminalConsole(int id, IReader reader, IWriter writer, LogicTerminal terminal)
 {
     _loginId       = id;
     _reader        = reader;
     _writer        = writer;
     _logicTerminal = terminal;
 }
Ejemplo n.º 2
0
 public MainMenu(IReader reader, IWriter writer, LogicSystem logicSystem, LogicTerminal logicTerminal)
 {
     _writer        = writer;
     _reader        = reader;
     _logicSystem   = logicSystem;
     _logicTerminal = logicTerminal;
     MenuChooseSystem();
 }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     CultureInfo.DefaultThreadCurrentCulture   = new CultureInfo("en");
     CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en");
     IWriter       writer        = new ConsoleWriter();
     IReader       reader        = new ConsoleReader(writer);
     LogicSystem   logicSystem   = new LogicSystem();
     LogicTerminal logicTerminal = new LogicTerminal();
     MainMenu      mainMenu      = new MainMenu(reader, writer, logicSystem, logicTerminal);
 }
Ejemplo n.º 4
0
 public TerminalView(LogicTerminal logic)
 {
     InitializeComponent();
     _logic = logic;
     timerCurrentDateTime.Start();
 }