private void ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            SlotMachineWindow newWindow = new SlotMachineWindow(TextBoxAddress.Text, PrintTicket);

            newWindow.Owner = this;
            newWindow.Show();
        }
예제 #2
0
 private void ButtonNew_Click(object sender, RoutedEventArgs e)
 {
     SlotMachineWindow newSlotMachine = new SlotMachineWindow(TextBoxAddress.Text, OnTicketReady)
     {
         Owner = this
     };
 }
예제 #3
0
        private void ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            SlotMachineWindow windowNew = new SlotMachineWindow(TextBoxAddress.Text, OnTicketPrint);

            windowNew.Owner = this;
            windowNew.Title = TextBoxAddress.Text;
            windowNew.Show();
        }
예제 #4
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            SlotMachineWindow smw1 = new SlotMachineWindow("Limmesstrasse");

            smw1.TicketVerkauftInfo += WennTicketVerkauft;
            SlotMachineWindow smw2 = new SlotMachineWindow("Landstrasse");

            smw2.TicketVerkauftInfo += WennTicketVerkauft;
        }
예제 #5
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            Title = $"Parkscheinzentrale,  {_clock.Time.ToShortTimeString()}";

            SlotMachineWindow window1 = new SlotMachineWindow("Limesstrasse", OnTicketPrint);

            window1.Show();
            window1.Title = "Limesstrasse";
            SlotMachineWindow window2 = new SlotMachineWindow("Landstrasse", OnTicketPrint);

            window2.Show();
            window2.Title = "Landstraße";
        }
예제 #6
0
        protected virtual void OnCreateNewSlotMachine(SlotMachine slotMachine)
        {
            string title = slotMachine.Title;

            if (title.Length > 0)
            {
                CreateNewSlotMachine?.Invoke(this, slotMachine);
                SlotMachineWindow window = new SlotMachineWindow(title, OnReadyTicket);
                window.Show();
            }
            else
            {
                MessageBox.Show("Keine gültige Adresse.");
            }
        }
예제 #7
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            FastClock.Instance.Factor           = 3600;
            FastClock.Instance.IsRunning        = true;
            FastClock.Instance.OneMinuteIsOver += Instance_OneMinuteIsOver;
            SlotMachineWindow slot1 = new SlotMachineWindow("LIMESSTRAßE", OnTicketReady)
            {
                Owner = this
            };

            slot1.Show();
            SlotMachineWindow slot2 = new SlotMachineWindow("LINZERSTRAßE", OnTicketReady)
            {
                Owner = this
            };

            slot2.Show();
        }
예제 #8
0
        private void Window_Loaded(object sender, EventArgs e)
        {
            FastClock.Instance.Factor    = 360;
            FastClock.Instance.Time      = DateTime.Parse("16:30:00");
            FastClock.Instance.IsRunning = true;
            SlotMachineWindow slotMachine1 = new SlotMachineWindow("Limesstarße", OnReadyTicket)
            {
                Owner = this
            };

            slotMachine1.Show();
            SlotMachineWindow slotMachine2 = new SlotMachineWindow("Landstarße", OnReadyTicket)
            {
                Owner = this
            };

            slotMachine2.Show();
            FastClock.Instance.OneMinuteIsOver += Instance_OneMinuteIsOver;
        }
        private void MetroWindow_Loaded(object sender, EventArgs e)
        {
            FastClock.Instance.Factor           = 360;
            FastClock.Instance.OneMinuteIsOver += OnOneMinuteIsOver;
            this.Title = "PARKSCHEINZENTRALE";

            SlotMachineWindow slotMachineWindow1 = new SlotMachineWindow("LIMESSTRASSE", OnTicketReady)
            {
                Owner = this
            };

            slotMachineWindow1.Show();

            SlotMachineWindow slotMachineWindow2 = new SlotMachineWindow("LANDSTRASSE", OnTicketReady)
            {
                Owner = this
            };

            slotMachineWindow2.Show();
        }
 private void ButtonNew_Click(object sender, RoutedEventArgs e)
 {
     SlotMachineWindow newWindow = new SlotMachineWindow(TextBoxAddress.Text, ButtonPrintTicket_Click); // Methode die aufgerufen wird wenn auf Ticket gedrückt
 }
예제 #11
0
        protected virtual void ErzeugeNeuenAutomat(String strassenName)
        {
            SlotMachineWindow smw = new SlotMachineWindow(strassenName);

            smw.TicketVerkauftInfo += WennTicketVerkauft;
        }