コード例 #1
0
 /// <summary>
 /// The find result background for the editor.
 /// </summary>
 /// <param name="sender">Object that raised the event.</param>
 /// <param name="e">Event arguments.</param>
 private void buttonFindResultBackground_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ColorSelectWindow dlg = new ColorSelectWindow();
         dlg.SelectedColor = SettingFindResultBackground;
         if (App.ShowDialog(dlg) && dlg.SelectedColor.HasValue)
         {
             SettingFindResultBackground = dlg.SelectedColor.Value;
             UpdateView();
         }
     }
     catch (Exception err)
     {
         App.HandleException(err);
     }
 }
コード例 #2
0
 /// <summary>
 /// The selection background for the editor.
 /// </summary>
 /// <param name="sender">Object that raised the event.</param>
 /// <param name="e">Event arguments.</param>
 private void buttonSelectionBackground_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ColorSelectWindow dlg = new ColorSelectWindow();
         dlg.AllowNoColor  = true;
         dlg.SelectedColor = SettingSelectionBackground;
         if (App.ShowDialog(dlg))
         {
             SettingSelectionBackground = dlg.SelectedColor;
             UpdateView();
         }
     }
     catch (Exception err)
     {
         App.HandleException(err);
     }
 }
コード例 #3
0
 /// <summary>
 /// Show the color selection dialog.
 /// </summary>
 /// <param name="sender">Object that raised the event.</param>
 /// <param name="e">Event arguments.</param>
 private void buttonSymbolBackground_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         EditorSymbolSettings ess = SelectedSettingSymbol;
         if (ess != null)
         {
             ColorSelectWindow dlg = new ColorSelectWindow();
             dlg.AllowNoColor  = true;
             dlg.SelectedColor = ess.Background;
             if (App.ShowDialog(dlg))
             {
                 ess.Background = dlg.SelectedColor;
                 UpdateView();
             }
         }
     }
     catch (Exception err)
     {
         App.HandleException(err);
     }
 }