public OutlookSearch(AccountConfig config) { EmailAddress = config.EmailAddress; SearchPhrase = config.SearchTag; SearchSize = config.SearchSize; SearchTime = config.SearchTime; TimerInterval = config.TimerInterval; MaxDisplayItems = config.DisplayItems; _searchTimer = new TimerPlus(TimerInterval * 1000) { AutoReset = true }; _outlookTimer = new TimerPlus(2000) { AutoReset = true }; _searchTimer.Start(); _outlookTimer.Start(); // register events _searchTimer.Elapsed += TimerElapsed; _outlookTimer.Elapsed += CheckOutlookStatus; OnSearchErrorOccurred += ErrorHandler; OnFindErrorOccurred += SearchError; OnFindComplete += SearchComplete; OnServiceStart += OnStart; // raise on start events OnServiceStart?.Invoke(this, EventArgs.Empty); }
public void BirdCaw() { if (birdy != null) { birdy.Caw().MoveNext(); cawTimer.Start(); } }
public SearchTracking() { Logger.Log("Starting search tracker"); OnServiceStart += ServiceStartup; _searchTimer = new TimerPlus(10 * 1000) { AutoReset = true }; _searchTimer.Elapsed += TrackTimerElapsed; _searchTimer.Start(); OnServiceStart?.Invoke(this, EventArgs.Empty); }
private void ShowPlus() { panelFraction.Dock = System.Windows.Forms.DockStyle.None; panelFraction.Hide(); panelPlus.Show(); panelPlus.Dock = System.Windows.Forms.DockStyle.Fill; if (isStart) { TimerPlus.Interval = 500; isStart = false; } else { TimerPlus.Interval = 2000; } //화면에 플러스 띄우기 TimerPlus.Start(); }