Пример #1
0
        private void fn1()
        {
            Waluta_nazwa.Visibility   = Visibility;
            max_kup.Visibility        = Visibility;
            min_kup.Visibility        = Visibility;
            srednia.Visibility        = Visibility;
            max_buy_price.Visibility  = Visibility;
            min_buy_price.Visibility  = Visibility;
            avg_buy.Visibility        = Visibility;
            waluta.Visibility         = Visibility;
            Max_sell_l.Visibility     = Visibility;
            max_sell.Visibility       = Visibility;
            Min_sell_l.Visibility     = Visibility;
            min_sell.Visibility       = Visibility;
            avg_sell.Visibility       = Visibility;
            avg_sell_l.Visibility     = Visibility;
            dev_sell.Visibility       = Visibility;
            dev_sell_label.Visibility = Visibility;
            dev_buy_label.Visibility  = Visibility;
            dev_buy.Visibility        = Visibility;
            delete.Visibility         = Visibility;

            readXml.set_country(country_number);
            readXml.read();
            avg_buy.Content       = readXml.avg_buy_price();
            max_buy_price.Content = readXml.max_buy_price();
            min_buy_price.Content = readXml.min_buy_price();
            min_sell.Content      = readXml.min_sell_price();
            max_sell.Content      = readXml.max_sell_price();
            avg_sell.Content      = readXml.avg_sell_price();
            dev_buy.Content       = readXml.dev_buy();
            dev_sell.Content      = readXml.dev_sell();

            if (country_number == 1)
            {
                waluta.Content = "USD";
            }
            if (country_number == 2)
            {
                waluta.Content = "EUR";
            }
            if (country_number == 3)
            {
                waluta.Content = "GBP";
            }
            if (country_number == 4)
            {
                waluta.Content = "CHF";
            }
        }