Esempio n. 1
0
        public MainWindow()
        {
            LocalizationService XLS = LocalizationService.NewXLS();
            StreamReader        sr1 = new StreamReader("Vocabulary.csv");

            XLS.ChangeVocabulary(sr1.BaseStream);
            this.Resources.Add("localLangConv", new XLocalizationService.XLSConverter(XLS));


            InitializeComponent();

            //this is a file as content
            StreamReader sr = new StreamReader("Vocabulary.csv");

            LocalizationService.LS.ChangeVocabulary(sr.BaseStream);

            foreach (var l in LocalizationService.LS.SupportedLanguages)
            {
                this.LanguagesComboBox.Items.Add(l);
            }

            this.LanguagesComboBox.SelectedIndex = 0;

            refreshLabel();
        }