Exemplo n.º 1
0
        public score_table(Form1 parent, menu m)
        {
            main = parent;
            main_menu = m;

            main.Text = main.app_name + " [" + main.app_version + "] - High Scores";

            draw_area = new PictureBox();
            draw_area.Width = 640;
            draw_area.Height = 480;

            main.KeyUp += new KeyEventHandler(main_KeyUp);

            main.Controls.Clear();
            main.Controls.Add(draw_area);

            draw();
        }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //DEFINE WINDOW PROPERTIES
            this.Size = new Size(640, 480);
            this.MaximizeBox = false;
            this.KeyPreview = true;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Text = app_name + " [v" + app_version + "]";

            //DEFINE MAIN MENU
            main_menu = new menu(this);
            main_menu.setTitle();

            this.Cursor.Dispose();

            load_highScore();

            //LOAD SETTINGS
            mouse_control = data.Default.mouse_control;
            sensitivity = data.Default.sensitivity;
        }