Exemplo n.º 1
0
        private void m_pGetAPI_Click(object sender, EventArgs e)
        {
            wfrm_se_VirtualServerAPI frm = new wfrm_se_VirtualServerAPI(m_pServer);

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                m_pAssembly.Text = frm.AssemblyName;
                m_pType.Text     = frm.TypeName;

                if (m_pAssembly.Text.ToLower() == "xml_api.dll")
                {
                    m_pPropertyGrid.SelectedObject = new XML_InitString();
                }
                else if (m_pAssembly.Text.ToLower() == "mssql_api.dll")
                {
                    m_pPropertyGrid.SelectedObject = new MSSQL_InitString();
                }
                else if (m_pAssembly.Text.ToLower() == "pgsql_api.dll")
                {
                    m_pPropertyGrid.SelectedObject = new PGSQL_InitString();
                }
                else
                {
                    MessageBox.Show("TODO:");
                }
            }
        }
        private void m_pGetAPI_Click(object sender, EventArgs e)
        {
            wfrm_se_VirtualServerAPI frm = new wfrm_se_VirtualServerAPI(m_pServer);
            if(frm.ShowDialog(this) == DialogResult.OK){
                m_pAssembly.Text = frm.AssemblyName;
                m_pType.Text     = frm.TypeName;

                if(m_pAssembly.Text.ToLower() == "xml_api.dll"){
                    m_pPropertyGrid.SelectedObject = new XML_InitString();
                }
                else if(m_pAssembly.Text.ToLower() == "mssql_api.dll"){
                    m_pPropertyGrid.SelectedObject = new MSSQL_InitString();
                }                
                else if(m_pAssembly.Text.ToLower() == "pgsql_api.dll"){
                    m_pPropertyGrid.SelectedObject = new PGSQL_InitString();
                }
                else{
                    MessageBox.Show("TODO:");
                }
            }
        }