Ejemplo n.º 1
0
 private void btnConfig_Click(object sender, EventArgs e)
 {
     fmSetServerPath afmSetServerPath = new fmSetServerPath(FAddIn);
     afmSetServerPath.ShowDialog();
 }
Ejemplo n.º 2
0
        private static XmlDocument GetServerPathXML(AddIn addIn, bool isOpenForm)
        {
            String strAddinPath = Path.GetDirectoryName(addIn.Object.GetType().Assembly.Location) + "\\ServerPath.xml";
            if (!File.Exists(strAddinPath))
            {
                if (isOpenForm)
                {
                    fmSetServerPath fmssp = new fmSetServerPath(addIn);
                    fmssp.ShowDialog();
                }
                else
                {
                    return null;
                }
            }
            XmlDocument x = new XmlDocument();
            x.Load(strAddinPath);

            return x;
        }