Example #1
0
        private void skinLVMethods_DoubleClick(object sender, EventArgs e)
        {
            if (skinLVMethods.SelectedItems.Count > 0 && skinLVInterfaces.SelectedItems.Count > 0)
            {
                var       a         = skinLVMethods.SelectedItems[0];
                var       intf      = skinLVInterfaces.SelectedItems[0];
                HA_Method ha_method = new HA_Method
                {
                    intf_code = a.SubItems[0].Text,
                    m_name    = a.SubItems[1].Text,
                    m_code    = a.SubItems[2].Text,
                    m_desc    = a.SubItems[3].Text,
                    //m_reqtype = a.SubItems[4].Text,
                    m_template     = Convert.ToInt32(a.SubItems[4].Text),
                    m_version      = a.SubItems[5].Text,
                    m_funcode      = a.SubItems[6].Text,
                    m_isencrypted  = false, //a.SubItems[2].Text,
                    m_arggrpcode   = a.SubItems[8].Text,
                    m_rtnvaluecode = a.SubItems[9].Text,
                    m_pagesize     = Convert.ToInt32(a.SubItems[10].Text)
                };

                FrmManageMethod addprojForm = new FrmManageMethod(ha_method, intf.Text);
                addprojForm.ShowDialog();
                ReloadMethod(intf.Text);
            }
        }
Example #2
0
 private void tBtnAddMethod_Click(object sender, EventArgs e)
 {
     if (skinLVInterfaces.SelectedItems.Count > 0)
     {
         var             a          = skinLVInterfaces.SelectedItems[0];
         HA_MethodDAL    dal        = new HA_MethodDAL();
         FrmManageMethod methodForm = new FrmManageMethod(null, a.Text);
         methodForm.ShowDialog();
         if (a == null)
         {
             return;
         }
         ReloadMethod(a.Text);
     }
     else
     {
         MessageBox.Show("请选择需要添加方法的接口");
     }
     //dal.AddNew()
 }