Exemple #1
0
 public TerminalConsole(int id, IReader reader, IWriter writer, LogicTerminal terminal)
 {
     _loginId       = id;
     _reader        = reader;
     _writer        = writer;
     _logicTerminal = terminal;
 }
Exemple #2
0
 public MainMenu(IReader reader, IWriter writer, LogicSystem logicSystem, LogicTerminal logicTerminal)
 {
     _writer        = writer;
     _reader        = reader;
     _logicSystem   = logicSystem;
     _logicTerminal = logicTerminal;
     MenuChooseSystem();
 }
Exemple #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);
 }
Exemple #4
0
 public TerminalView(LogicTerminal logic)
 {
     InitializeComponent();
     _logic = logic;
     timerCurrentDateTime.Start();
 }