コード例 #1
0
 private void EhMinorTicksValidating(string txt, CancelEventArgs e)
 {
     if (GUIConversion.IsInt32OrNull(txt, out var val))
     {
         _doc.MinorTicks = val;
     }
     else
     {
         e.Cancel = true;
     }
 }
コード例 #2
0
 private void EhMajorSpanValidating(string txt, CancelEventArgs e)
 {
     if (GUIConversion.IsInt32OrNull(txt, out var val))
     {
         _doc.DecadesPerMajorTick = val;
     }
     else
     {
         e.Cancel = true;
     }
 }