Beispiel #1
0
        /// <summary>
        /// The Constructor
        /// </summary>
        /// <param name="_parametersPanel"></param>
        public SetParameters(ref FlowLayoutPanel _parametersPanel)
        {
            parameters = new ParameterBox [13];

            for (ShipType type = 0; type <= ShipType.ColonyShip; type++)
            {
                TextBox      textBox         = (TextBox)_parametersPanel.Controls [(int)type];
                ParameterBox newParameterbox = new ParameterBox(type, ref textBox);
                Add_Parameterbox(newParameterbox);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Removes a parameterbox from the list. NOTE: Will set the list value to "null"
 /// </summary>
 /// <param name="_parameterbox"></param>
 public void Remove_Parameterbox(ParameterBox _parameterbox)
 {
     parameters [(int)_parameterbox.Type] = null;
 }
Beispiel #3
0
 /// <summary>
 /// Adds a parameterbox to the list
 /// </summary>
 /// <param name="_parameterBox"></param>
 public void Add_Parameterbox(ParameterBox _parameterBox)
 {
     parameters [(int)_parameterBox.Type] = _parameterBox;
 }