protected virtual void OnActivityRemoved(ActivityRemovedEventArgs e) { var handler = ActivityRemoved; if (handler != null) { handler(this, e); } }
private void DataManager_ActivityRemoved(object sender, ActivityRemovedEventArgs e) { var appointment = (IgOutlook.Business.Calendar.Appointment)e.Activity.DataItem; if (e.Activity.IsVariance) { if (appointment.IsMeetingRequest) { CalendarService.GenerateAssociatedVarianceAppointments(appointment); } } else { if (appointment.IsMeetingRequest) { CalendarService.DeleteAssociatedAppointments(appointment); } } }
private void ActivityCloudConnectorActivityDeleted(object sender, ActivityRemovedEventArgs e) { ActivityStore.Activities.Remove(e.Id); _publisher.Publish(ActivityEvent.ActivityRemoved.ToString(), e.Id); Console.WriteLine("ActivityManager: Published {0}: {1}", EventType.ActivityEvents, ActivityEvent.ActivityRemoved); }
void ActivityNode_ActivityRemoved(object sender, ActivityRemovedEventArgs e) { IActivity backupActivity; activitiesCache.TryRemove(e.Id, out backupActivity); }
void node_ActivityRemoved(object sender, ActivityRemovedEventArgs e) { //OnActivityRemoved(e); }
void ActivitySystem_ActivityRemoved(object sender, ActivityRemovedEventArgs e) { Notifier.NotifyAll(NotificationType.ActivityRemoved, e.Id); }
private void ActivityClientActivityRemoved(object sender, ActivityRemovedEventArgs e) { Activity removedActivity; _activityBuffer.TryRemove(e.Id, out removedActivity); }
protected virtual void OnActivityRemoved(ActivityRemovedEventArgs e) { var handler = ActivityRemoved; if (handler != null) handler(this, e); }
void ActivityNode_ActivityRemoved( object sender, ActivityRemovedEventArgs e ) { IActivity backupActivity; activitiesCache.TryRemove( e.Id, out backupActivity ); }