private void Task_TaskDescriptionChanged(object sender, TaskDescriptionChangedEventArgs e) { if (e.originalSender != this) { TaskDescriptionChange(e.task.ID, e.newDescription); } }
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); } }