Ejemplo n.º 1
0
        public BasicForm(Speedometer s, GearChanger gc, Clutch c)
        {
            this.s  = s;
            this.gc = gc;
            this.c  = c;

            InitializeComponent();
        }
Ejemplo n.º 2
0
        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);
        }