private void PreviewFromScrollBar_Scroll(object sender, ScrollEventArgs e) { try { PreviewData.Refresh(); } catch (Exception ex) { Common.LogNoMsg(ex); } }
private void LyFromFld_ValueChanged(object sender, EventArgs e) { try { CurrentResults = GetSelection(); PreviewFromScrollBar.Value = 0; PreviewFromScrollBar.Maximum = CurrentResults.Count; PreviewData.Refresh(); Common.Env.DefaultLineDb = IntensTypeCbx.SelectedIndex; Common.Env.Store(); } catch (Exception ex) { Common.Log(ex); } }
private void LoadTheme(AccentColorData accentColor, AppThemeData appTheme, bool editAccentColor) { CurrentTitle = editAccentColor ? Application.Current.Resources["AccentColorString"].ToString() : Application.Current.Resources["AppTheme"].ToString(); var themeToEdit = editAccentColor ? (DataThemeBase)accentColor : appTheme; CurrentElement = themeToEdit; CurrentView = new ThemePage(); var previewData = new PreviewData(accentColor, appTheme) { FrameworkElement = PreviewControl }; PreviewData = previewData; PreviewControl = new LivePreview(); previewData.FrameworkElement = PreviewControl; previewData.Refresh(); CanGoBack = true; }