Exemplo n.º 1
0
        public MainWindowViewModel()
        {
            languageDatabase = new LanguageDatabase();
            settingsDatabase = new SettingsDatabase();
            //Importing settings
            settingsDatabase.LoadSettingsFile();
            //Importing language
            if (!settingsDatabase.Database.ContainsKey("Language"))
            {
                languageDatabase.ImportLanguage("en_EN");
            }
            else
            {
                languageDatabase.ImportLanguage(settingsDatabase.Database["Language"]);
            }

            MainMenu = new UlConnectViewModel(this.languageDatabase);
            MainMenu.ConnectionInfoDatabase.CreateConnectionText = languageDatabase.Database["CreateConnectionText"];
            Content = MainMenu;
        }