示例#1
0
 private void Task_TaskDescriptionChanged(object sender, TaskDescriptionChangedEventArgs e)
 {
     if (e.originalSender != this)
     {
         TaskDescriptionChange(e.task.ID, e.newDescription);
     }
 }
示例#2
0
 protected virtual void OnDescriptionChanged(string newDescription, string oldDescription, object sender)
 {
     if (TaskDescriptionChanged != null)
     {
         TaskDescriptionChangedEventArgs e = new TaskDescriptionChangedEventArgs();
         e.newDescription = newDescription;
         e.oldDescription = oldDescription;
         e.task           = this;
         e.originalSender = sender;
         TaskDescriptionChanged(this, e);
     }
 }