예제 #1
0
 private void EditBoxOnUnloaded(object sender, RoutedEventArgs routedEventArgs)
 {
     Settings.Default.WordWrapEnabled   = EditBox.WordWrap;
     Settings.Default.SpellCheckEnabled = SpellCheck;
     Settings.Default.AutoSave          = AutoSave;
     FindReplaceDialog.Dispose();
 }
예제 #2
0
 public MainWindow(IMarkdownConverter markdownConverter, ISpellCheckProvider spellCheckProvider, FindReplaceDialog findReplaceDialog)
 {
     InitializeComponent();
     MarkdownConverter       = markdownConverter;
     SpellCheckProvider      = spellCheckProvider;
     FindReplaceDialog       = findReplaceDialog;
     Loaded                 += OnLoaded;
     Closing                += OnClosing;
     SizeChanged            += (s, e) => CalculateEditorMargins();
     Editor.PropertyChanged += EditorOnPropertyChanged;
     Editor.TextChanged     += (s, e) => Preview.UpdatePreview(Editor.Text);
     Editor.ScrollChanged   += (s, e) => Preview.SetScrollOffset(e);
 }
예제 #3
0
 public void FindPrevious() => Execute(() => FindReplaceDialog.FindPrevious());
예제 #4
0
 public void FindNext() => Execute(() => FindReplaceDialog.FindNext());
예제 #5
0
 public void ReplaceDialog() => Execute(() => FindReplaceDialog.ShowReplaceDialog());
예제 #6
0
 public void FindDialog()
 {
     Execute(() => FindReplaceDialog.ShowFindDialog());
 }