예제 #1
0
 private void SetColor(ISnbtCheckResult result)
 {
     if (result.IsValid)
     {
         RestoreBackColor();
     }
     else
     {
         if (result is SnbtInvalidFormat)
         {
             SetBackColor(Color.FromArgb(255, 230, 230));
         }
         else if (result is SnbtInvalidWrongType)
         {
             SetBackColor(Color.FromArgb(255, 230, 230));
         }
     }
 }
예제 #2
0
 private void ShowTooltip(ISnbtCheckResult result)
 {
     ShowTooltip(result.Title, result.Description, TimeSpan.FromSeconds(3));
 }