Example #1
0
 private void Task_TaskChecked(object sender, TaskCheckedEventArgs e)
 {
     if (e.originalSender != this)
     {
         TaskCheck(e.task.ID, e.check);
     }
 }
Example #2
0
 protected virtual void OnChecked(bool check, object sender)
 {
     if (TaskChecked != null)
     {
         TaskCheckedEventArgs e = new TaskCheckedEventArgs();
         e.check          = check;
         e.originalSender = sender;
         e.task           = this;
         TaskChecked(this, e);
     }
 }