private void btnConfig_Click(object sender, EventArgs e) { fmSetServerPath afmSetServerPath = new fmSetServerPath(FAddIn); afmSetServerPath.ShowDialog(); }
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; }