1using System;2using System.Collections.Generic;3using System.ComponentModel;4using System.Data;5using System.Drawing;6using System.Linq;7using System.Text;8using System.Windows.Forms;910namespace IntelliDispatch11{121314public partial class Loader : Form15{16private System.Timers.Timer _delayTimer;1718public Loader()19{20InitializeComponent();212223delay();2425}2627private void delay()28{29_delayTimer = new System.Timers.Timer();30_delayTimer.Interval = 1000;31_delayTimer.Enabled = true;32_delayTimer.Elapsed += _delayTimer_Elapsed;33_delayTimer.Start();34}3536private void _delayTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)37{38_delayTimer.Stop();39//Global.Plugins.FindPlugins(Application.StartupPath + @"\Plugins");40this.DialogResult = DialogResult.OK;41this.Close();42}4344}45}