void SetFontSize(double value)
 {
     if (workbench.InvokeRequired)
     {
         Action <double> action = SetFontSize;
         workbench.SafeThreadAsyncCall(action, value);
     }
     else
     {
         CodeEditorOptions.FontSize = value;
     }
 }
Beispiel #2
0
 public void SaveColors(IEnumerable <CustomizedHighlightingColor> colors)
 {
     if (workbench.InvokeRequired)
     {
         Action <IEnumerable <CustomizedHighlightingColor> > action = SaveColors;
         workbench.SafeThreadAsyncCall(action, colors);
     }
     else
     {
         CustomizedHighlightingColor.SaveColors(colors);
     }
 }
 void SafeThreadAsyncCall <A, B>(Action <A, B> method, A arg1, B arg2)
 {
     workbench.SafeThreadAsyncCall <A, B>(method, arg1, arg2);
 }