Exemple #1
0
        protected override void OnClick()
        {
            base.OnClick();
            ReportTimeEventArgs reportTimeEventArgs = new ReportTimeEventArgs(ReportTimeEvent, this)
            {
                ClickTime = DateTime.Now
            };

            RaiseEvent(reportTimeEventArgs);
        }
Exemple #2
0
 public void ReportTimeHandler(object sender, ReportTimeEventArgs e)
 {
     MessageBox.Show((sender as FrameworkElement).Name + "  " + e.ClickTime.ToString());
 }