using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace IntelliDispatch { public partial class Loader : Form { private System.Timers.Timer _delayTimer; public Loader() { InitializeComponent(); delay(); } private void delay() { _delayTimer = new System.Timers.Timer(); _delayTimer.Interval = 1000; _delayTimer.Enabled = true; _delayTimer.Elapsed += _delayTimer_Elapsed; _delayTimer.Start(); } private void _delayTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { _delayTimer.Stop(); //Global.Plugins.FindPlugins(Application.StartupPath + @"\Plugins"); this.DialogResult = DialogResult.OK; this.Close(); } } }