コード例 #1
0
        private void RobotCheckBox_CheckedChange(object sender, EventArgs e)
        {
            if (isLocked)
            {
                return;
            }
            CheckBox        input       = (CheckBox)sender;
            BoolTransaction transaction = new BoolTransaction("Robot flag", robot, (string)input.Tag, robotid, tabPage, input.Checked);

            transactionManager.ApplyTransaction(transaction);
        }
コード例 #2
0
        private void FlagCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }
            CheckBox        control     = (CheckBox)sender;
            BoolTransaction transaction = new BoolTransaction("Door flag", clip, (string)control.Tag, wclipID, 3, control.Checked);

            transactionManager.ApplyTransaction(transaction);
        }
コード例 #3
0
        private void WeaponCheckBox_CheckChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }
            CheckBox checkBox = (CheckBox)sender;

            BoolTransaction transaction = new BoolTransaction("Weapon property", weapon, (string)checkBox.Tag, weaponID, tabPage, checkBox.Checked);

            transactionManager.ApplyTransaction(transaction);
        }
コード例 #4
0
        private void TextureFlagCheckbox_CheckedChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }
            TMAPInfo        tmapinfo    = datafile.TMapInfo[textureID];
            CheckBox        control     = (CheckBox)sender;
            BoolTransaction transaction = new BoolTransaction("TMapInfo property", tmapinfo, (string)control.Tag, textureID, 0, control.Checked);

            transactionManager.ApplyTransaction(transaction);
        }
コード例 #5
0
        private void VClipRodFlag_CheckedChanged(object sender, EventArgs e)
        {
            if (isLocked || transactionManager.TransactionInProgress)
            {
                return;
            }

            CheckBox        checkBox    = (CheckBox)sender;
            BoolTransaction transaction = new BoolTransaction("VClip flag", clip, (string)checkBox.Tag, vclipID, 1, checkBox.Checked);

            transactionManager.ApplyTransaction(transaction);
        }