protected void Initialize() { ConsoleMover.SetConsolePosition(675, 340); Console.SetWindowSize(80, 50); Console.SetWindowPosition(0, 0); }
static void Main(string[] args) { ConsoleMover.SetConsolePosition(675, 0); Mapper.Initialize(cfg => { cfg.CreateMap <ColonyModel, Colony_HoldingsVM>(); }); var config = new NancyConfig(); HostConfiguration hsc = new HostConfiguration(); hsc.UrlReservations.CreateAutomatically = true; var host = new NancyHost(hsc, new Uri("http://localhost:" + config.Port.ToString())); host.Start(); Console.WriteLine("NancyHost Succesfully Initialized."); while (true) { string c = Console.ReadLine(); if (c.ToLower() == "exit") { return; } } }
private static void Main(string[] args) { ConsoleMover.SetConsolePosition(0, 340); Server s = new Server(); s.Start(); while (true) { Console.ReadLine();//Keeps console app open indefinitely } }
protected override void Initialize() { ConsoleMover.SetConsolePosition(675, 340); Window.Title = @"Freecon Galactic: Alpha"; // Sets title for titlebar Window.AllowUserResizing = true; // Allows user to resize window IsMouseVisible = true; // Makes mouse visible upon mouse over IsFixedTimeStep = true; IsMouseVisible = true; Console.SetWindowSize(80, 25); Console.SetWindowPosition(0, 0); base.Initialize(); }
protected override void Initialize() { ConsoleMover.SetConsolePosition(675, 340); Window.Title = @"Freecon Galactic: Alpha"; // Sets title for titlebar Window.AllowUserResizing = true; // Allows user to resize window Window.ClientSizeChanged += new EventHandler <EventArgs>(Window_ClientSizeChanged); Form form = (Form)Control.FromHandle(Window.Handle); // Maximizing the window does not trigger Window.ClientSizeChanged form.Resize += Form_Resize; IsMouseVisible = true; // Makes mouse visible upon mouse over IsFixedTimeStep = true; IsMouseVisible = true; Console.SetWindowSize(80, 25); Console.SetWindowPosition(0, 0); base.Initialize(); }