Battle_Script_Pro.Form2.Form2 C# (CSharp) Method

Form2() public method

public Form2 ( Command>.Dictionary theCommands, SuperCommand>.Dictionary theSuperCommands ) : System
theCommands Command>.Dictionary
theSuperCommands SuperCommand>.Dictionary
return System
        public Form2(Dictionary<string, Command> theCommands, Dictionary<string, SuperCommand> theSuperCommands)
        {
            InitializeComponent();
            commands = theCommands;
            superCommands = theSuperCommands;
            foreach (string s in commands.Keys)
            {
                comboBox1.Items.Add(s.ToLower());
            }
            comboBox1.Items.Add("-----------------------");
            dividerLocation = comboBox1.Items.Count - 1;
            foreach (string s in superCommands.Keys)
            {
                comboBox1.Items.Add(s.ToLower());
            }
            comboBox1.SelectedIndex = 0;
        }