public EventCommandSelfSwitch(SetSelfSwitchCommand refCommand, FrmEvent editor)
 {
     InitializeComponent();
     mMyCommand   = refCommand;
     mEventEditor = editor;
     InitLocalization();
     cmbSetSwitch.SelectedIndex    = mMyCommand.SwitchId;
     cmbSetSwitchVal.SelectedIndex = Convert.ToInt32(mMyCommand.Value);
 }
        private static string GetCommandText(SetSelfSwitchCommand command, MapInstance map)
        {
            var selfvalue = "";

            selfvalue = Strings.EventCommandList.False;
            if (command.Value)
            {
                selfvalue = Strings.EventCommandList.True;
            }

            return(Strings.EventCommandList.selfswitch.ToString(
                       Strings.EventCommandList.selfswitches[command.SwitchId], selfvalue
                       ));
        }