示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WaveControl" /> class.
        /// </summary>
        public WaveControl()
        {
            InitializeComponent();

            this.Width = 1024;
            this.Height = 768;
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque | ControlStyles.UserPaint, true);
            UpdateStyles();

            this.gameApp = new GameApp(this.Bounds.Width, this.Bounds.Height);
            this.gameApp.Configure(this.Handle);

            this.isInitialized = true;
        }        
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WaveControl" /> class.
        /// </summary>
        public WaveControl()
        {
            InitializeComponent();

            this.Width  = 1024;
            this.Height = 768;
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque | ControlStyles.UserPaint, true);
            UpdateStyles();

            this.gameApp = new GameApp(this.Bounds.Width, this.Bounds.Height);
            this.gameApp.Configure(this.Handle);

            this.isInitialized = true;
        }