ARCed.Controls.EventTextBox.Command121 C# (CSharp) Метод

Command121() приватный Метод

Control Switches
private Command121 ( dynamic args ) : void
args dynamic Array of game event parameters
Результат void
        private void Command121(dynamic args)
        {
            int id1 = args[0];
            int id2 = args[1];
            string oper = args[2] == 0 ? "ON" : "OFF";
            AppendText("@>");
            if (id1 == id2)
            {
                this.AppendText(String.Format("Control Switches: [{0}] = {1}",
                    Project.Switches[id1].ToString(), oper), Color.Red);
            }
            else
            {
                this.AppendText(String.Format("Control Switches: [{0}..{1}] = {2}",
                    id1, id2, oper), Color.Red);
            }
        }