public void FillListBox(RootObject ro) { ListBoxItem item1 = new ListBoxItem(); item1.Content = ro.Valute.AMD.Name; item1.Tag = ro.Valute.AMD.Value; listBox.Items.Add(item1); ListBoxItem item2 = new ListBoxItem(); item2.Content = ro.Valute.AUD.Name; item2.Tag = ro.Valute.AUD.Value; listBox.Items.Add(item2); ListBoxItem item3 = new ListBoxItem(); item3.Content = ro.Valute.AZN.Name; item3.Tag = ro.Valute.AZN.Value; listBox.Items.Add(item3); ListBoxItem item4 = new ListBoxItem(); item4.Content = ro.Valute.BGN.Name; item4.Tag = ro.Valute.BGN.Value; listBox.Items.Add(item4); ListBoxItem item5 = new ListBoxItem(); item5.Content = ro.Valute.BRL.Name; item5.Tag = ro.Valute.BRL.Value; listBox.Items.Add(item5); ListBoxItem item6 = new ListBoxItem(); item6.Content = ro.Valute.BYN.Name; item6.Tag = ro.Valute.BYN.Value; listBox.Items.Add(item6); ListBoxItem item7 = new ListBoxItem(); item7.Content = ro.Valute.CAD.Name; item7.Tag = ro.Valute.CAD.Value; listBox.Items.Add(item7); ListBoxItem item8 = new ListBoxItem(); item8.Content = ro.Valute.CHF.Name; item8.Tag = ro.Valute.CHF.Value; listBox.Items.Add(item8); ListBoxItem item9 = new ListBoxItem(); item9.Content = ro.Valute.CNY.Name; item9.Tag = ro.Valute.CNY.Value; listBox.Items.Add(item9); ListBoxItem item10 = new ListBoxItem(); item10.Content = ro.Valute.CZK.Name; item10.Tag = ro.Valute.CZK.Value; listBox.Items.Add(item10); ListBoxItem item11 = new ListBoxItem(); item11.Content = ro.Valute.DKK.Name; item11.Tag = ro.Valute.DKK.Value; listBox.Items.Add(item11); ListBoxItem item12 = new ListBoxItem(); item12.Content = ro.Valute.EUR.Name; item12.Tag = ro.Valute.EUR.Value; listBox.Items.Add(item12); ListBoxItem item13 = new ListBoxItem(); item13.Content = ro.Valute.GBP.Name; item13.Tag = ro.Valute.GBP.Value; listBox.Items.Add(item13); ListBoxItem item14 = new ListBoxItem(); item14.Content = ro.Valute.HKD.Name; item14.Tag = ro.Valute.HKD.Value; listBox.Items.Add(item14); ListBoxItem item15 = new ListBoxItem(); item15.Content = ro.Valute.HUF.Name; item15.Tag = ro.Valute.HUF.Value; listBox.Items.Add(item15); ListBoxItem item16 = new ListBoxItem(); item16.Content = ro.Valute.INR.Name; item16.Tag = ro.Valute.INR.Value; listBox.Items.Add(item16); ListBoxItem item17 = new ListBoxItem(); item17.Content = ro.Valute.JPY.Name; item17.Tag = ro.Valute.JPY.Value; listBox.Items.Add(item17); ListBoxItem item18 = new ListBoxItem(); item18.Content = ro.Valute.KGS.Name; item18.Tag = ro.Valute.KGS.Value; listBox.Items.Add(item18); ListBoxItem item19 = new ListBoxItem(); item19.Content = ro.Valute.KRW.Name; item19.Tag = ro.Valute.KRW.Value; listBox.Items.Add(item19); ListBoxItem item20 = new ListBoxItem(); item20.Content = ro.Valute.KZT.Name; item20.Tag = ro.Valute.KZT.Value; listBox.Items.Add(item20); ListBoxItem item21 = new ListBoxItem(); item21.Content = ro.Valute.MDL.Name; item21.Tag = ro.Valute.MDL.Value; listBox.Items.Add(item21); ListBoxItem item22 = new ListBoxItem(); item22.Content = ro.Valute.NOK.Name; item22.Tag = ro.Valute.NOK.Value; listBox.Items.Add(item22); ListBoxItem item23 = new ListBoxItem(); item23.Content = ro.Valute.PLN.Name; item23.Tag = ro.Valute.PLN.Value; listBox.Items.Add(item23); ListBoxItem item24 = new ListBoxItem(); item24.Content = ro.Valute.RON.Name; item24.Tag = ro.Valute.RON.Value; listBox.Items.Add(item24); ListBoxItem item25 = new ListBoxItem(); item25.Content = ro.Valute.SEK.Name; item25.Tag = ro.Valute.SEK.Value; listBox.Items.Add(item25); ListBoxItem item26 = new ListBoxItem(); item26.Content = ro.Valute.SGD.Name; item26.Tag = ro.Valute.SGD.Value; listBox.Items.Add(item26); ListBoxItem item27 = new ListBoxItem(); item27.Content = ro.Valute.TJS.Name; item27.Tag = ro.Valute.TJS.Value; listBox.Items.Add(item27); ListBoxItem item28 = new ListBoxItem(); item28.Content = ro.Valute.TMT.Name; item28.Tag = ro.Valute.TMT.Value; listBox.Items.Add(item28); ListBoxItem item29 = new ListBoxItem(); item29.Content = ro.Valute.TRY.Name; item29.Tag = ro.Valute.TRY.Value; listBox.Items.Add(item29); ListBoxItem item30 = new ListBoxItem(); item30.Content = ro.Valute.UAH.Name; item30.Tag = ro.Valute.UAH.Value; listBox.Items.Add(item30); ListBoxItem item31 = new ListBoxItem(); item31.Content = ro.Valute.USD.Name; item31.Tag = ro.Valute.USD.Value; listBox.Items.Add(item31); ListBoxItem item32 = new ListBoxItem(); item32.Content = ro.Valute.UZS.Name; item32.Tag = ro.Valute.UZS.Value; listBox.Items.Add(item32); ListBoxItem item33 = new ListBoxItem(); item33.Content = ro.Valute.XDR.Name; item33.Tag = ro.Valute.XDR.Value; listBox.Items.Add(item33); ListBoxItem item34 = new ListBoxItem(); item34.Content = ro.Valute.ZAR.Name; item34.Tag = ro.Valute.ZAR.Value; listBox.Items.Add(item34); }
public ChangePage(RootObject ro) { InitializeComponent(); rootObject = ro; FillListBox(rootObject); }