public bool EnqueueObject(QueueObjectSchedule obj) { try { ListQueueObjects.ListQueueSchedules.AddOrUpdate(obj, 0, Update); ChangeQueue(); return(true); } catch (Exception) { return(false); } }
private int Update(QueueObjectSchedule arg1, int arg2) { return(1); }
public void DeleteRecord(QueueObjectSchedule record) { int i = 0; ListQueueObjects.ListQueueSchedules.TryRemove(record, out i); }