public frmMain()
		{
			InitializeComponent();
			LogMessage(MessageType.Notification, "<a href=\"#exp_help\">Click here</a> for more information on all available variables!");
			LogMessage(MessageType.Warning, "Loading PluginSystem...");
			InitPluginSystem();

			LogMessage(MessageType.Warning, "Loading application config");
			main_conf = (Options)GetConfiguration(typeof(Options), typeof(frmMain));
			txtLastReplay.Text = main_conf.LastReplayLocation;
			txtSaveBase.Text = main_conf.BaseDirectory;
			txtExpression.Text = main_conf.Expression;

			LogMessage(MessageType.Warning, "Loading plugins...");
			defRegex.AddRange(new RegexCommand[] { new MapNameRegex(), new PlayerNameRegex(), new AllPlayersRegex(), new TimeStampRegex(), new IndexRegex() });
			LogMessage(MessageType.Notification, "Application initialized!");
			LogMessage(MessageType.Notification, "Click here to turn the filebinder <a href=\"#on\">on</a>/<a href=\"#off\">off</a> (default is on)");

			if (!string.IsNullOrWhiteSpace(txtLastReplay.Text))
			{
				fb = new FileBinder();
				fb.OnNewReplay += FileBinder_OnNewReplay;
				txtLastReplay.Enabled = false;
				fb.BindRebind(txtLastReplay.Text);
			}
		}
		private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
		{
			if (fb != null)
			{
				fb.Unbind();
				fb.OnNewReplay -= FileBinder_OnNewReplay;
				fb = null;
			}
			if (SPNOTIF != null)
			{
				SPNOTIF.Dispose();
				SPNOTIF = null;
			}
			foreach (iPlugin plug in LoadedPlugins)
			{
				plug.Destuct();
			}
			LoadedPlugins.Clear();
			LoadedPlugins = null;
		}
		private void htmlMessages_LinkClicked(object sender, HtmlRenderer.Entities.HtmlLinkClickedEventArgs e)
		{
			if (e.Link == "#on")
			{
				if (fb == null)
				{
					fb = new FileBinder();
					fb.OnNewReplay += FileBinder_OnNewReplay;
					fb.BindRebind(txtLastReplay.Text);
				}
				txtLastReplay.Enabled = false;
				fb.BindRebind(txtLastReplay.Text);
				LogMessage(MessageType.OK, "The FileBinder was succesfully rebound!");
			}
			else if (e.Link == "#off")
			{
				if (fb != null)
				{
					txtLastReplay.Enabled = true;
					fb.Unbind();
					LogMessage(MessageType.Warning, "The FileBinder was succesfully unbound. <b>REPLAY ARE NOT SAVED!</b>");
				}
			}
			else if (e.Link == "#exp_help")
			{
				new frmExpressionHelp(AvailableRegexes()).Show();
			}
			else if (e.Link.StartsWith("cfg://"))
			{
				ShowConfig(e.Link.Substring(6));
			}
			e.Handled = true;
		}