public Form1(GameHandler gh) { InitializeComponent(); m_gh = gh; m_gh.CH.Form = this; m_gh.CH.ViewPort.Rect = new Rectangle(0, 0, panel1.Width, panel1.Height); m_paintRegion = new List<Point>(); }
static void Main() { //init game Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GameHandler gh = new GameHandler(); Form1 v_form = new Form1(gh); Application.Run(v_form); }