Esempio n. 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;
            }
        }
Esempio n. 2
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;
     }
 }