Ejemplo n.º 1
0
        private void btnFindObjectAction_Click(object sender, EventArgs e)
        {
            SelectObject dlg = new SelectObject(_area);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                txtActionData.Text = dlg.GetIndexNumberString();
            }
        }
Ejemplo n.º 2
0
        private void btnFindValue3_Click(object sender, EventArgs e)
        {
            switch ((String)cbCommand.SelectedItem)
            {
            case "F":
            case "G":
            case "M":
            case "O":
            case "R":     // Room Number
            {
                SelectRoom dlg = new SelectRoom(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg3.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            case "E":     // Equipment Slot
            {
                SelectEquipmentSlot dlg = new SelectEquipmentSlot();
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg3.Text = dlg.GetNumber().ToString();
                }
            }
            break;

            case "P":     // Object Number
            {
                SelectObject dlg = new SelectObject(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg3.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            case "D":     // Door State
            {
                FlagEditor   dlg    = new FlagEditor(BitvectorFlagType.ExitFlags, 0, 0);
                DialogResult result = dlg.ShowDialog();
                if (result == DialogResult.OK)
                {
                    dlg.Text = dlg.Value.ToString();
                }
            }
            break;

            default:
                return;
            }
        }
Ejemplo n.º 3
0
        private void btnFindValue1_Click(object sender, EventArgs e)
        {
            switch ((String)cbCommand.SelectedItem)
            {
            case "D":     // Room Number
            {
                SelectRoom dlg = new SelectRoom(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg1.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            case "F":
            case "M":     // Mob Number
            {
                SelectMob dlg = new SelectMob(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg1.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            case "E":
            case "G":
            case "O":
            case "P":     // Object Number
            {
                SelectObject dlg = new SelectObject(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg1.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            default:
                return;
            }
        }
Ejemplo n.º 4
0
 private void btnFindKey_Click(object sender, EventArgs e)
 {
     SelectObject dlg = new SelectObject(_area);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         txtKeyIndexNumber.Text = dlg.GetIndexNumberString();
     }
 }
Ejemplo n.º 5
0
 private void btnFindValue3_Click(object sender, EventArgs e)
 {
     switch ((String)cbCommand.SelectedItem)
     {
         case "F":
         case "G":
         case "M":
         case "O":
         case "R": // Room Number
             {
                 SelectRoom dlg = new SelectRoom(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg3.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         case "E": // Equipment Slot
             {
                 SelectEquipmentSlot dlg = new SelectEquipmentSlot();
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg3.Text = dlg.GetNumber().ToString();
                 }
             }
             break;
         case "P": // Object Number
             {
                 SelectObject dlg = new SelectObject(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg3.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         case "D": // Door State
             {
                 FlagEditor dlg = new FlagEditor(BitvectorFlagType.ExitFlags, 0, 0);
                 DialogResult result = dlg.ShowDialog();
                 if (result == DialogResult.OK)
                 {
                     dlg.Text = dlg.Value.ToString();
                 }
             }
             break;
         default:
             return;
     }
 }
Ejemplo n.º 6
0
 private void btnFindValue1_Click(object sender, EventArgs e)
 {
     switch ((String)cbCommand.SelectedItem)
     {
         case "D": // Room Number
             {
                 SelectRoom dlg = new SelectRoom(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg1.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         case "F":
         case "M": // Mob Number
             {
                 SelectMob dlg = new SelectMob(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg1.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         case "E":
         case "G":
         case "O":
         case "P": // Object Number
             {
                 SelectObject dlg = new SelectObject(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg1.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         default:
             return;
     }
 }