public GameForm() : base() { sGameForm = this; // Don't give it a ShapeCollection to edit - make it null. EditorData.Initialize(null); GuiData.Initialize(); sGameForm.Text = "PolygonEditor - untitled file"; this.DragEnter += new System.Windows.Forms.DragEventHandler(this.GameForm_DragDrop); }
static void Main(string[] args) { using (GameForm gameForm = new GameForm()) { //try //{ gameForm.Run(args); //} //catch (Exception e) //{ // System.Windows.Forms.MessageBox.Show("Error:\n" + e.ToString()); //} } }