Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            mainConnector = new FormConnector(this);
            M_Form = this;
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            this.UpdateStyles();

            Game game = Game.Instance;
            game.adjustGameFormSize(this);
            DrawTimer.Start();
        }
Beispiel #2
0
        public MainForm()
        {
            InitializeComponent();
            mainConnector = new FormConnector(this);
            M_Form        = this;
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            this.UpdateStyles();

            Game game = Game.Instance;

            game.adjustGameFormSize(this);
            DrawTimer.Start();
        }
Beispiel #3
0
        public LobbyForm(string n, Color c) : base()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;

            lobbyConnector = new FormConnector(this);
            MainForm.mainConnector.ConnectForm(this);
            name                = n;
            color               = c;
            L_form              = this;
            MessageBox.KeyDown += new KeyEventHandler(MessageBox_KeyDown);
        }
Beispiel #4
0
        public LobbyForm(string n, Color c)
            : base()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;

            lobbyConnector = new FormConnector(this);
            MainForm.mainConnector.ConnectForm(this);
            name = n;
            color = c;
            L_form = this;
            MessageBox.KeyDown += new KeyEventHandler(MessageBox_KeyDown);
        }