示例#1
0
        private void btnFindValue5_Click(object sender, EventArgs e)
        {
            switch ((String)cbCommand.SelectedItem)
            {
            case "G":     // Mob Number
            {
                SelectMob dlg = new SelectMob(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg5.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            case "P":     // Room Number
            {
                SelectRoom dlg = new SelectRoom(_area);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg5.Text = dlg.GetIndexNumberString();
                }
            }
            break;

            default:
                return;
            }
        }
示例#2
0
        private void btnFindMobAction_Click(object sender, EventArgs e)
        {
            SelectMob dlg = new SelectMob(_area);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                txtActionData.Text = dlg.GetIndexNumberString();
            }
        }
 private void btnFindMobTrigger_Click(object sender, EventArgs e)
 {
     SelectMob dlg = new SelectMob(_area);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         txtTriggerData.Text = dlg.GetIndexNumberString();
     }
 }
示例#4
0
 private void btnFindValue5_Click(object sender, EventArgs e)
 {
     switch ((String)cbCommand.SelectedItem)
     {
         case "G": // Mob Number
             {
                 SelectMob dlg = new SelectMob(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg5.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         case "P": // Room Number
             {
                 SelectRoom dlg = new SelectRoom(_area);
                 dlg.ShowDialog();
                 if (dlg.DialogResult == DialogResult.OK)
                 {
                     txtArg5.Text = dlg.GetIndexNumberString();
                 }
             }
             break;
         default:
             return;
     }
 }