Exemple #1
0
        //============================================================
        // <T>加载窗体信息。<T>
        //============================================================
        public void LoadConfig()
        {
            string       applicationConfig = RMoCommon.GetEnvironment("application.root") + "\\Configuration\\excel.export.xml";
            FXmlDocument xmldoc            = new FXmlDocument();

            xmldoc.LoadFile(applicationConfig);
            foreach (FXmlNode node in xmldoc.Root.Nodes)
            {
                if ("ExcelExportList" == node.Name)
                {
                    _templateSource = node.Get("source_path");
                    _templateTarget = node.Get("target_path");
                    LoadTemplate(node);
                }
                if ("ConverterExportList" == node.Name)
                {
                    _mergerTarget = node.Get("target_path");
                    LoadMerger(node);
                }
                if ("CommandList" == node.Name)
                {
                    LoadCopy(node);
                }
            }
        }
Exemple #2
0
        //============================================================
        // <T>存储处理。</T>
        //============================================================
        public void Export()
        {
            Open();
            string exportFileName = RMoCommon.GetEnvironment("export.root") + @"\db\constant.db";

            SerializeFile(exportFileName);
        }
Exemple #3
0
        static void Main()
        {
            // 设置应用程序
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // 初始化系统
            string location       = RSystem.Location();
            string configFileName = location + @"\..\Configuration\environment.mobile.xml";

            RMoCommon.Initialize();
            RMoCommon.LoadEnvironment(configFileName);
            // 加载配置信息
            string applicationRoot = RMoCommon.GetEnvironment("application.root");

            LoadDirectory(applicationRoot);


            //QMapDesignForm form = new QMapDesignForm();
            //FMbMap map = RMobileManager.MapConsole.FindById(101);
            //form.LoadMap(map);
            //Application.Run(form);

            QMapConsoleForm.Instance.Open();
            Application.Run(QMapConsoleForm.Instance);
            // 释放系统
            RMoCore.Release();
        }