示例#1
0
        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>();
        }
示例#2
0
        static void Main()
        {
            //init game
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GameHandler gh = new GameHandler();

            
            Form1 v_form = new Form1(gh);
            Application.Run(v_form);
        }