void colorwindows_Closed(object sender, EventArgs e) { colorwindows = null; var isChange = (sender as ColorWindow).IsChangeData; if (!isChange) { return; } var dataContext = (MainWindowViewModel)this.DataContext; var userPrefs = new UserPreferences(); dataContext.SetBible(userPrefs.BibileLocation); //BibleBooksComboBox.SelectedIndex = BibleBooksComboBox.SelectedIndex; //cboDoan.SelectedIndex = cboDoan.SelectedIndex; }
void colorwindows_Closed(object sender, EventArgs e) { colorwindows = null; var isChange = (sender as ColorWindow).IsChangeData; if (!isChange) return; var dataContext = (MainWindowViewModel)this.DataContext; var userPrefs = new UserPreferences(); dataContext.SetBible(userPrefs.BibileLocation); //BibleBooksComboBox.SelectedIndex = BibleBooksComboBox.SelectedIndex; //cboDoan.SelectedIndex = cboDoan.SelectedIndex; }