Example #1
0
        private void btnFindValue3_Click(object sender, EventArgs e)
        {
            switch (_type)
            {
            case ObjTemplate.ObjectType.switch_trigger:
            {
                SelectDirection dlg = new SelectDirection();
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    txtValue3.Text = dlg.GetDirection().ToString();
                }
            }
                return;

            case ObjTemplate.ObjectType.drink_container:
            {
                SelectLiquid dlg = new SelectLiquid();
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    txtValue3.Text = dlg.GetText();
                }
            }
                return;

            default:
                return;
            }
        }
Example #2
0
        private void btnFindDirAction_Click(object sender, EventArgs e)
        {
            SelectDirection dlg = new SelectDirection();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                txtActionData.Text = dlg.GetText();
            }
        }
Example #3
0
        private void btnFindValue2_Click(object sender, EventArgs e)
        {
            switch ((String)cbCommand.SelectedItem)
            {
            case "D":     // Door Direction
                SelectDirection dlg = new SelectDirection();
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    txtArg2.Text = dlg.GetDirection().ToString();
                }
                break;

            default:
                return;
            }
        }
 private void btnFindDirTrigger_Click(object sender, EventArgs e)
 {
     SelectDirection dlg = new SelectDirection();
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         txtTriggerData.Text = dlg.GetText();
     }
 }
Example #5
0
 private void btnFindValue2_Click(object sender, EventArgs e)
 {
     switch ((String)cbCommand.SelectedItem)
     {
         case "D": // Door Direction
             SelectDirection dlg = new SelectDirection();
             dlg.ShowDialog();
             if (dlg.DialogResult == DialogResult.OK)
             {
                 txtArg2.Text = dlg.GetDirection().ToString();
             }
             break;
         default:
             return;
     }
 }
Example #6
0
 private void btnFindValue3_Click(object sender, EventArgs e)
 {
     switch (_type)
     {
         case ObjTemplate.ObjectType.switch_trigger:
             {
                 SelectDirection dlg = new SelectDirection();
                 if (dlg.ShowDialog() == DialogResult.OK)
                 {
                     txtValue3.Text = dlg.GetDirection().ToString();
                 }
             }
             return;
         case ObjTemplate.ObjectType.drink_container:
             {
                 SelectLiquid dlg = new SelectLiquid();
                 if (dlg.ShowDialog() == DialogResult.OK)
                 {
                     txtValue3.Text = dlg.GetText();
                 }
             }
             return;
         default:
             return;
     }
 }