private void LoadFromXML(string FileName)
        {
            System.Xml.XmlDocument oXmlDoc = null;
            oXmlDoc = new System.Xml.XmlDocument();

            string sPath = null;

            sPath = Application.StartupPath;

            oXmlDoc.Load(sPath + @"\" + FileName);

            string tmpStr;

            tmpStr = oXmlDoc.InnerXml;

            oApplication.LoadBatchActions(ref tmpStr);

            sPath = oApplication.GetLastBatchResults();
        }
Example #2
0
    public static void LoadXML(string fileName)
    {
        //@"e:\bp.srf"
        try
        {
            XmlDocument oDoc = new XmlDocument();

            string path = Application.StartupPath;
            path = System.IO.Path.Combine(path, "XML_Init");
            path = System.IO.Path.Combine(path, fileName);
            oDoc.Load(path);

            string tmp = oDoc.InnerXml;
            SubMain.SBO_Application.LoadBatchActions(ref tmp);
            path = SBO_Application.GetLastBatchResults();
        }
        catch (Exception ex)
        {
            SubMain.MessageBox(ex.Message);
        }
    }