static void Main(string[] args) { window = new ConsoleWindowFrame { Width = 70, Height = 20 }; window.StartRender(); try { remoteName = "localhost"; remotePort = 5150; running = true; client = null; string input = window.GetInputWithQuestion("Enter your name: "); client = new Client(input); while (running) { try { string message = window.GetInputWithQuestion("Skriv ett meddelande: "); DecodeMessage(message); } catch (Exception e) { } } client.Close(); } catch (Exception e) { ErrorMessage(e.Message); } window.Abort(); PressAnyKey(); }
protected AdministrateGui(ConsoleWindowFrame mainWindow, ICrud <T> dbManager) { MainWindow = mainWindow; DbManager = dbManager; }
public ProductGui(ConsoleWindowFrame mainWindow) : base(mainWindow, new ProductDbManager(System.Configuration.ConfigurationManager.ConnectionStrings["Kundregister"].ConnectionString)) { }