Пример #1
0
        public ThemeDialog()
        {
            InitializeComponent();

            IList <Culture> cultures = Cultures.CreateListCultures();

            Cultures.FillCountriesCollection(comboCulture1.Items, cultures);
            Cultures.FillCountriesCollection(comboCulture2.Items, cultures);

            textName.Text = Environment.UserName;
        }
Пример #2
0
        public LanguageDialog()
        {
            InitializeComponent();

            foreach (string flagImage in imageSmallFlags.Images.Keys)
            {
                comboFlag.Items.Add(
                    new KryptonListItem()
                {
                    ShortText = flagImage.Substring(0, flagImage.Length - 4),
                    Image     = imageSmallFlags.Images[flagImage]
                });
            }

            cultures = Cultures.CreateListCultures();
            comboLang.Items.AddRange(AvailableCultures.ToArray());
        }