Inheritance: System.Windows.Forms.Form
Esempio 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;
 }
Esempio 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;
 }
Esempio 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);
        }
Esempio 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);
        }