Пример #1
0
 void _native_LButtonClicked(object sender, SysMouseEventInfo e)
 {
     _native.Close();
     timer1.Stop();
     //this is to ensure that EyeDropper tool feature doesn't
     //affect Color Dialog tool feature
     if (_timerCounter >= TIMER_COUNTER_THRESHOLD)
     {
         Globals.ThisAddIn.Application.StartNewUndoEntry();
         UpdateUIForNewColor();
         if (currMode != MODE.NONE)
         {
             ColorSelectedShapesWithColor(_pickedColor);
         }
     }
     _timerCounter = 0;
     ResetEyeDropperSelectionInDataSource();
 }
Пример #2
0
 void _native_RButtonClicked(object sender, SysMouseEventInfo e)
 {
     listBox1.Items.Add(e.WindowTitle);
 }