static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Speedometer s = new Speedometer(); GearChanger gc = new GearChanger(); Clutch c = new Clutch(); BasicForm f = new BasicForm(s, gc, c); f.MinimumSize = new System.Drawing.Size(500, 500); f.MaximumSize = new System.Drawing.Size(500, 500); f.MaximizeBox = false; f.MinimizeBox = false; Application.Run(f); }
public PainterUpdater2(BasicForm f, GearChanger gc) { g = f.CreateGraphics(); this.f = f; this.gc = gc; }