コード例 #1
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex >= 0)
     {
         SelectedMethod   = listBox1.Items[listBox1.SelectedIndex] as VplMethodPointer;
         buttonOK.Enabled = true;
     }
     else
     {
         buttonOK.Enabled = false;
     }
 }
コード例 #2
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            EnumMethodWebUsage webuse = EnumMethodWebUsage.Server;

            if (_runatwebclient)
            {
                webuse = EnumMethodWebUsage.Client;
            }
            MethodClass mc = _root.CreateNewMethodFixParams(webuse, _paramTypes, _pnames, buttonAdd.ClientRectangle, this);

            if (mc != null)
            {
                SelectedMethod    = new VplMethodPointer(mc.MethodID, mc.MethodName);
                this.DialogResult = DialogResult.OK;
            }
        }
コード例 #3
0
 public void SwitchEventHandler(string eventName, VplMethodPointer handler)
 {
 }