コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }