Inheritance: System.Windows.Forms.Form
Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            UserInterface UI = new UserInterface();

            Elevator Elevator = new Elevator();

            Syncronize Sync = new Syncronize(ref Elevator, ref UI);

            Application.Run(UI);
        }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            UserInterface UI = new UserInterface();

            Application.Run(UI);

            Elevator Elevator = new Elevator(UI);

            while( true )
            {
                Elevator.CurrentState.Move( Elevator );
            }
        }
Exemple #3
0
 public Syncronize(ref Elevator Elevator, ref UserInterface UI)
 {
     _elevator = Elevator;
     _ui = UI;
     _ui.CurrentPosition = Elevator.CurrentFloor;
 }
Exemple #4
0
 /// <summary>
 /// Konstruktor
 /// </summary>
 public Elevator(UserInterface myUI)
 {
     this._ui = myUI;
     InitOrReset();
 }