public void DoExport()
        {
            switch (WorksheetExportType)
            {
            default:
                return;

            case ExportType.CSV:
                _CSVPath = Google2uGUIUtil.GetString("g2ucsvDirectory", Google2u.Google2uGenPath("CSV"));
                break;

            case ExportType.JSON:
                _JSONPath = Google2uGUIUtil.GetString("g2ujsonDirectory", Google2u.Google2uGenPath("JSON"));
                break;

            case ExportType.NGUI:
                _NGUIPath = Google2uGUIUtil.GetString("g2unguiDirectory", Google2u.Google2uGenPath("NGUI"));
                break;

            case ExportType.StaticDatabase:
                _StaticDbPath = Google2uGUIUtil.GetString("g2uStaticDBResourcesDirectory", Google2u.Google2uGenPath("STATICDBRESOURCES"));
                break;

            case ExportType.XML:
                _XMLPath = Google2uGUIUtil.GetString("g2uxmlDirectory", Google2u.Google2uGenPath("XML"));
                break;

            case ExportType.ObjectDatabase:
                _ObjdbResourcesPath = Google2uGUIUtil.GetString("g2uobjDBResourcesDirectory", Google2u.Google2uGenPath("OBJDBRESOURCES"));
                _ObjdbEditorPath    = Google2uGUIUtil.GetString("g2uobjDBEditorDirectory", Google2u.Google2uGenPath("OBJDBEDITOR"));
                _PlaymakerPath      = Google2uGUIUtil.GetString("g2uplaymakerDirectory", Google2u.Google2uGenPath("PLAYMAKER"));
                break;
            }



            if (_ExportThread == null || _ExportThread.IsAlive == false)
            {
                _ExportThread = new Thread(ExportThread)
                {
                    Name = "ExportThread"
                };
                _ExportThread.Start(this);
            }
        }
Exemple #2
0
        public void DoExport()
        {
            _JSONPath     = Google2uGUIUtil.GetString("g2ujsonDirectory", Google2u.Google2uGenPath("JSON"));
            _CSVPath      = Google2uGUIUtil.GetString("g2ucsvDirectory", Google2u.Google2uGenPath("CSV"));
            _XMLPath      = Google2uGUIUtil.GetString("g2uxmlDirectory", Google2u.Google2uGenPath("XML"));
            _NGUIPath     = Google2uGUIUtil.GetString("g2unguiDirectory", Google2u.Google2uGenPath("NGUI"));
            _StaticDbPath = Google2uGUIUtil.GetString("g2uStaticDBResourcesDirectory",
                                                      Google2u.Google2uGenPath("STATICDBRESOURCES"));
            _ObjdbResourcesPath = Google2uGUIUtil.GetString("g2uobjDBResourcesDirectory",
                                                            Google2u.Google2uGenPath("OBJDBRESOURCES"));
            _ObjdbEditorPath = Google2uGUIUtil.GetString("g2uobjDBEditorDirectory",
                                                         Google2u.Google2uGenPath("OBJDBEDITOR"));
            _PlaymakerPath = Google2uGUIUtil.GetString("g2uplaymakerDirectory", Google2u.Google2uGenPath("PLAYMAKER"));


            if (_ExportThread == null || _ExportThread.IsAlive == false)
            {
                _ExportThread = new Thread(ExportThread)
                {
                    Name = "ExportThread"
                };
                _ExportThread.Start(this);
            }
        }