Example #1
0
 internal TurnScreen(Turn turn, MainScreen mainscreen)
 {
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     FormBorderStyle  = FormBorderStyle.None;
     this.Text        = turn.name;
     this.BackColor   = Color.Black;
     this.turn        = turn;
     this.mainscreen  = mainscreen;
     this.MouseClick += TurnScreen_Click;
     InitializeComponent();
 }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            startWifi();
            Game game = new Game(@"C:\Users\miros\Documents\QuizGame\GameData");

            // C:\WINDOWS\system32>netsh http add urlacl url=http://*:8080/ sddl=D:(A;;GX;;;S-1-1-0)
            ws = new WebServer("http://*:8080/");
            ws.Run();

            MainScreen form = new MainScreen(game);

            Application.Run(form);
        }