Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
 public Dot(int x, int y, Color color, MyForm form)
 {
     m_x                 = x;
     m_y                 = y;
     m_color             = color;
     m_form              = form;
     m_pen               = new Pen(m_color);
     m_form.m_area[x, y] = true;
 }
Exemplo n.º 2
0
 public Dot(int x, int y, Color color, MyForm form)
 {
     m_x = x;
     m_y = y;
     m_color = color;
     m_form = form;
     m_pen = new Pen(m_color);
     m_form.m_area[x, y] = true;
 }
Exemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MyForm f = new MyForm();

            f.Show();

            new MicroThread(WindowRun).Start();

            for (int i = 0; i < 200; i++)
            {
                Dot         d = new Dot(i, 0, Color.Red, f);
                MicroThread t = new MicroThread(d.Run);
                t.Start();
            }

            Scheduler.Run();

            //			Application.Run(f);
        }
Exemplo n.º 4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MyForm f = new MyForm();
            f.Show();

            new MicroThread(WindowRun).Start();

            for (int i = 0; i < 200; i++)
            {
                Dot d = new Dot(i, 0, Color.Red, f);
                MicroThread t = new MicroThread(d.Run);
                t.Start();
            }

            Scheduler.Run();

            //			Application.Run(f);
        }