示例#1
0
        private void ButKarta_Click(object sender, RoutedEventArgs e)
        {
            Zaplac okno_platnosci = new Zaplac();

            if (Jezyk.EngOrPol == 1)
            {
                TextBlock blok = textblock_create("APPLY YOUR PAYMENT CARD TO THE CARD READER", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 6, 2);
                okno_platnosci.GridPlatnosci.Children.Add(blok);
            }
            else
            {
                TextBlock blok = textblock_create("PRZYŁÓŻ KARTĘ PŁATNICZĄ DO CZYTNIKA", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 6, 2);
                okno_platnosci.GridPlatnosci.Children.Add(blok);
            }

            okno_platnosci.Show();
            this.Close();
        }
示例#2
0
        private void ButGotowka_Click(object sender, RoutedEventArgs e)
        {
            Zaplac okno_platnosci = new Zaplac();

            if (Jezyk.EngOrPol == 1)
            {
                TextBlock blok  = textblock_create("TICKET MACHINE ACCEPTS BANKNOTES AND COINS", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 6, 2);
                TextBlock blok2 = textblock_create("IT IS ALSO GIVING THE CHANGE", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 7, 2);
                okno_platnosci.GridPlatnosci.Children.Add(blok);
                okno_platnosci.GridPlatnosci.Children.Add(blok2);
            }
            else
            {
                TextBlock blok  = textblock_create("BILETOMAT PRZYJMUJE BANKONOTY MONETY", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 6, 2);
                TextBlock blok2 = textblock_create("WYDAJE TAKŻE RESZTĘ", 30, FontWeights.Bold, Colors.Black, VerticalAlignment.Center, 7, 2);
                okno_platnosci.GridPlatnosci.Children.Add(blok);
                okno_platnosci.GridPlatnosci.Children.Add(blok2);
            }
            okno_platnosci.Show();
            this.Close();
        }