Battle_Script_Pro.Form1.Form1 C# (CSharp) Method

Form1() public method

public Form1 ( string fileName ) : System
fileName string
return System
        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);
        }

Same methods

Form1::Form1 ( ) : System
Form1::Form1 ( int offset, string fileName ) : System
Form1