예제 #1
0
 /// <summary>
 /// ウインドウ領域
 /// </summary>
 /// <param name="config"></param>
 private void OnReflectWindowBounds(XmlConfigModel config)
 {
     config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Size.Width", this.m_MainWindowWidth);
     config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Size.Height", this.m_MainWindowHeight);
     config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Location.Left", this.m_MainWindowLeft);
     config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Location.Top", this.m_MainWindowTop);
 }
예제 #2
0
파일: AppInfo.cs 프로젝트: kazu3516/Kucl
 //既定のConfig
 private void OnCreateDefaultConfig(XmlConfigModel config)
 {
     config.AddXmlContentsItem("Kucl.setting:Common.Name", "SAMPLE_NAME");
     config.AddXmlContentsItem("Kucl.setting:Common.Location.X", 10);
     config.AddXmlContentsItem("Kucl.setting:Common.Location.Y", 20);
     config.AddXmlContentsItem("Kucl.setting:Common.Settings.Detail.Enabled", false);
     config.AddXmlContentsItem("Kucl.setting:Special.Settings.UnManaged", false);
 }
예제 #3
0
 /// <summary>
 /// 対象拡張子
 /// </summary>
 /// <param name="config"></param>
 private void OnReflectTargetExtentions(XmlConfigModel config)
 {
     config.AddXmlContentsItem("LibraryExplorer.setting:Common.TargetExtentions.Count", this.m_TargetExtentions.Count);
     for (int i = 0; i < this.m_TargetExtentions.Count; i++)
     {
         config.AddXmlContentsItem($"LibraryExplorer.setting:Common.TargetExtentions.{i + 1}", this.m_TargetExtentions[i]);
     }
 }
예제 #4
0
파일: AppInfo.cs 프로젝트: kazu3516/Kucl
        //Configの更新
        private void OnReflectConfig(XmlConfigModel config)
        {
            config.AddXmlContentsItem("Kucl.setting:Common.Name", this.m_Name);
            config.AddXmlContentsItem("Kucl.setting:Common.Location.X", this.m_Location.X);
            config.AddXmlContentsItem("Kucl.setting:Common.Location.Y", this.m_Location.Y);
            config.AddXmlContentsItem("Kucl.setting:Common.Settings.Detail.Enabled", this.m_EnableDetailSettings);

            config.AddXmlContentsItem("Kucl.setting:Special.Settings.UnManaged", this.UnManagedMode);
        }
예제 #5
0
 /// <summary>
 /// 複数ファイルで構成されるファイル
 /// </summary>
 /// <param name="config"></param>
 private void OnReflectHasOtherFilesExtentions(XmlConfigModel config)
 {
     config.AddXmlContentsItem("LibraryExplorer.setting:Common.HasOtherFilesExtentions.Count", this.m_HasOtherFilesExtentions.Count);
     for (int i = 0; i < this.m_HasOtherFilesExtentions.Keys.Count; i++)
     {
         string key = this.m_HasOtherFilesExtentions.Keys.ElementAt(i);
         config.AddXmlContentsItem($"LibraryExplorer.setting:Common.HasOtherFilesExtentions.{i + 1}.Target", key);
         List <string> list = this.m_HasOtherFilesExtentions[key];
         config.AddXmlContentsItem($"LibraryExplorer.setting:Common.HasOtherFilesExtentions.{i + 1}.Count", list.Count);
         for (int j = 0; j < list.Count; j++)
         {
             config.AddXmlContentsItem($"LibraryExplorer.setting:Common.HasOtherFilesExtentions.{i + 1}.{j + 1}", list[j]);
         }
     }
 }
예제 #6
0
 //Configの更新
 private void OnReflectConfig(XmlConfigModel config)
 {
     //LibraryFolders
     config.AddXmlContentsItem("LibraryExplorer.project:Project.LibraryFolders.Count", this.m_Libraries.Count);
     for (int i = 0; i < this.m_Libraries.Count; i++)
     {
         config.AddXmlContentsItem($"LibraryExplorer.project:Project.LibraryFolders.Folders.{i + 1}", this.m_Libraries[i].TargetFolder);
     }
     //OfficeFiels
     config.AddXmlContentsItem("LibraryExplorer.project:Project.OfficeFiles.Count", this.m_ExcelFiles.Count);
     for (int i = 0; i < this.m_ExcelFiles.Count; i++)
     {
         OfficeFile file = this.m_ExcelFiles[i];
         config.AddXmlContentsItem($"LibraryExplorer.project:Project.OfficeFiles.{i + 1}.Path", file.FileName);
         config.AddXmlContentsItem($"LibraryExplorer.project:Project.OfficeFiles.{i + 1}.ExportPath", file.WorkspaceFolder.Path);
         config.AddXmlContentsItem($"LibraryExplorer.project:Project.OfficeFiles.{i + 1}.ExportDate", file.ExportDate?.ToString() ?? "");
         config.AddXmlContentsItem($"LibraryExplorer.project:Project.OfficeFiles.{i + 1}.BackupCount", file.BackupPathList.Count);
         for (int j = 0; j < file.BackupPathList.Count; j++)
         {
             config.AddXmlContentsItem($"LibraryExplorer.project:Project.OfficeFiles.{i + 1}.Backup.{j + 1}", file.BackupPathList[j]);
         }
     }
 }
예제 #7
0
 //既定のConfig
 private void OnCreateDefaultConfig(XmlConfigModel config)
 {
     //LibraryProject
     config.AddXmlContentsItem("LibraryExplorer.project:Project.LibraryFolders.Count", 0);
     config.AddXmlContentsItem("LibraryExplorer.project:Project.OfficeFiles.Count", 0);
 }
예제 #8
0
        //既定のConfig
        private void OnCreateDefaultConfig(XmlConfigModel config)
        {
            //対象拡張子
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.TargetExtentions.Count", 3);
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.TargetExtentions.1", ".bas");
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.TargetExtentions.2", ".frm");
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.TargetExtentions.3", ".cls");
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.HasOtherFilesExtentions.Count", 1);
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.HasOtherFilesExtentions.1.Target", ".frm");
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.HasOtherFilesExtentions.1.Count", 1);
            config.AddXmlContentsItem("LibraryExplorer.setting:Common.HasOtherFilesExtentions.1.1", ".frx");

            //Library関連
            config.AddXmlContentsItem("LibraryExplorer.setting:Library.Header.Start", "MY_LIBRARY_HEADER_START");
            config.AddXmlContentsItem("LibraryExplorer.setting:Library.Header.End", "MY_LIBRARY_HEADER_END");

            //エディタ設定
            config.AddXmlContentsItem("LibraryExplorer.setting:Editor.Path", "");
            config.AddXmlContentsItem("LibraryExplorer.setting:Editor.Arguments", "");

            //比較ツール設定
            config.AddXmlContentsItem("LibraryExplorer.setting:DiffTool.Path", "");
            config.AddXmlContentsItem("LibraryExplorer.setting:DiffTool.Arguments", "");

            //スクリプト
            config.AddXmlContentsItem("LibraryExplorer.setting:Script.ExcelModuleExport", "ExcelModuleExport.vbs");
            config.AddXmlContentsItem("LibraryExplorer.setting:Script.ExcelModuleImport", "ExcelModuleImport.vbs");

            //MainWindowの位置とサイズ
            config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Size.Width", 400);
            config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Size.Height", 300);
            config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Location.Left", 50);
            config.AddXmlContentsItem("LibraryExplorer.setting:Window.MainWindow.Location.Top", 50);
        }
예제 #9
0
 /// <summary>
 /// スクリプト
 /// </summary>
 /// <param name="config"></param>
 private void OnReflectScriptInfo(XmlConfigModel config)
 {
     config.AddXmlContentsItem("LibraryExplorer.setting:Script.ExcelModuleExport", this.m_ExcelModuleExportScriptName);
     config.AddXmlContentsItem("LibraryExplorer.setting:Script.ExcelModuleImport", this.m_ExcelModuleImportScriptName);
 }
예제 #10
0
 /// <summary>
 /// ライブラリヘッダ
 /// </summary>
 /// <param name="config"></param>
 private void OnReflectHeaderInfo(XmlConfigModel config)
 {
     config.AddXmlContentsItem("LibraryExplorer.setting:Library.Header.Start", this.m_LibraryHeaderStart);
     config.AddXmlContentsItem("LibraryExplorer.setting:Library.Header.End", this.m_LibraryHeaderEnd);
 }