/// <summary> /// Constructor. /// </summary> public Win32GameWindow(GameOptions options) : base() { this.options = options; this.Cursor = Cursors.Arrow; this.FormBorderStyle = options.WindowResizable ? FormBorderStyle.Sizable : FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.ClientSize = new System.Drawing.Size(options.WindowSize.Width, options.WindowSize.Height); this.KeyPreview = true; this.Visible = false; //this.Icon = Snowball.GameFramework.Properties.Resources.Icon; this.textInputEventArgs = new TextInputEventArgs(); this.closeEventArgs = new CancelEventArgs(); }
private void Window_TextInput(object sender, TextInputEventArgs e) { if (this.TextInput != null) this.TextInput(this, e); }