public Form1(string fileName)
{
InitializeComponent();
this.MaximumSize = this.MinimumSize = this.Size;
SetupTool();
if (Path.GetExtension(fileName).ToUpper().Equals(".BS") || Path.GetExtension(fileName).ToUpper().Equals(".BSH"))
{
scripts[tabControl1.SelectedIndex].Lines = File.ReadAllLines(fileName);
}
else
{
MessageBox.Show("This file format is unsupported through drag and drop.");
}
this.KeyPreview = true;
this.KeyDown += new KeyEventHandler(Form_KeyDown);
}