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