public DocumentCollectionTracker(YellowstonePathology.Business.ReportDistribution.Model.ReportDistributionLogEntryCollection collection, YellowstonePathology.Business.Mongo.Server mongoServer) { this.m_MongoServer = mongoServer; this.m_DocumentTrackerList = new List <DocumentTracker>(); foreach (INotifyPropertyChanged o in collection) { DocumentTracker documentTracker = new DocumentTracker(this.m_MongoServer); documentTracker.Register(o); this.m_DocumentTrackerList.Add(documentTracker); } collection.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(CollectionChanged); }
public ReportDistributionWorkspace() { this.m_PublishClock = DateTime.Now; this.m_ScheduleClock = DateTime.Now; this.m_ReportDistributionLogEntryCollection = new Business.ReportDistribution.Model.ReportDistributionLogEntryCollection(); this.m_Timer = new System.Windows.Threading.DispatcherTimer(); this.m_Timer.Interval = this.m_TimerIntervalFast; this.m_Timer.Tick += new EventHandler(Timer_Tick); this.m_TimerRunning = true; InitializeComponent(); this.DataContext = this; this.m_Timer.Start(); this.SetStatus("Idle"); }
public ReportDistributionWorkspace() { this.m_PublishClock = DateTime.Now; this.m_ScheduleClock = DateTime.Now; this.m_ReportDistributionLogEntryCollection = new Business.ReportDistribution.Model.ReportDistributionLogEntryCollection(); this.m_Timer = new System.Windows.Threading.DispatcherTimer(); this.m_Timer.Interval = this.m_TimerIntervalFast; this.m_Timer.Tick += new EventHandler(Timer_Tick); this.m_TimerRunning = true; InitializeComponent(); this.DataContext = this; this.m_Timer.Start(); this.SetStatus("Idle"); }