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; }
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; }
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); }
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); }