Exemple #1
0
 private void HandleHootkey(object sender, KeyPressedEventArgs eventArgs)
 {
     if (eventArgs.Modifier == ColorFinder.ModifierKeys.Control &&
         eventArgs.Key == Keys.D)
     {
         Clipboard.SetText(txtColorDiff.Text);
         niColorFinder.ShowBalloonTip(1000, "Color Finder", "Color diff copiado", ToolTipIcon.Info);
     }
     else if (eventArgs.Modifier == (ColorFinder.ModifierKeys.Control | ColorFinder.ModifierKeys.Shift) &&
              eventArgs.Key == Keys.D)
     {
         Clipboard.SetText(txtHexadecimal.Text);
         niColorFinder.ShowBalloonTip(1000, "Color Finder", "Hexadecimal copiado", ToolTipIcon.Info);
     }
 }