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 windowNew = new SlotMachineWindow(TextBoxAddress.Text, OnTicketPrint);

            windowNew.Owner = this;
            windowNew.Title = TextBoxAddress.Text;
            windowNew.Show();
        }
        private void ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            SlotMachineWindow slotMachineWindow = new SlotMachineWindow(TextBoxAddress.Text, OnTicketReady)
            {
                Owner = this
            };

            slotMachineWindow.Show();
        }
예제 #4
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";
        }
예제 #5
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.");
            }
        }
예제 #6
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();
        }
예제 #7
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();
        }