예제 #1
0
        public ParamExplorerForm(string fileName)
        {
            InitializeComponent();

            ParamCol = ParameterCollection.LoadFromFile(fileName);

            originalFormText = this.Text;

            if (fileName != "")
            {
                this.Text += " - " + fileName;
            }

            saveParameterFileToolStripMenuItem.Enabled = (fileName != "");

            gridParameters.DataSource = ParamCol.Parameters;

            // We have a combo-box thats allowed the type (class) of a parameter to be changed
            // populate this with the list of all parameter types
            comboType.Items.AddRange(Parameter.AllParameterTypes());

            AnyChanges = false;
        }