Esempio n. 1
0
        private void OnPickerChange(object sender, EventArgs args)
        {
            string  dbname  = (this.FindByName("pickerdb") as Picker).SelectedItem.ToString();
            DbNames namesDb = new DbNames(dbname);

            fileName = DbNames.dbName;
            SetWords();
        }
Esempio n. 2
0
        public MainPage()
        {
            BindingContext = new ViewModels();
            randomWord     = File.ReadAllLines(Path.Combine(dbFolder, "RandomWords.txt"));
            //
            InitializeComponent();
            string  dbname  = (this.FindByName("pickerdb") as Picker).SelectedItem.ToString();
            DbNames namesDb = new DbNames(dbname);

            fileName = DbNames.dbName;
            SetWords();
        }