示例#1
0
        System.Drawing.Pen currentPen;          //

        public frmImage()
        {
            InitializeComponent();
            log          = new ClickLogger();
            currentRect  = new Rectangle(0, 0, 0, 0);
            currentBrush = new System.Drawing.SolidBrush(System.Drawing.Color.DarkOrchid);
            currentPen   = new System.Drawing.Pen(currentBrush);
        }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     ClickLogger.AttachLogging <Button>(Controls);
     ClickLogger.LogClick += (sender, e) =>
     {
         textBox1.AppendText(string.Format("{0} -- {1}\r\n", e.DateTime, e.Name));
     };
 }
 public Form1()
 {
     InitializeComponent();
     ClickLogger.SubscribeClick(button1, button_Click);
     ClickLogger.SubscribeClick(button2, button_Click);
     ClickLogger.SubscribeClick(button3, button_Click);
     ClickLogger.LogClick += (sender, e) =>
     {
         textBox1.AppendText(string.Format("{0} -- {1}\r\n", e.DateTime, e.Name));
     };
 }
示例#4
0
 protected override void OnClick(EventArgs e)
 {
     ClickLogger.NotifyClick(this);
     base.OnClick(e);
 }