private void ButtonNew_Click(object sender, RoutedEventArgs e) { SlotMachineWindow newWindow = new SlotMachineWindow(TextBoxAddress.Text, PrintTicket); newWindow.Owner = this; newWindow.Show(); }
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(); }
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"; }
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."); } }
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(); }
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(); }