Exemple #1
0
        private ScriptWindow_CodeEditor GetOpenedScriptEditor(string path)
        {
            foreach (ScriptWindow_CodeEditor editor in DockPanel_Main.GetDocumentControls())
            {
                if (editor.ScriptPath == path)
                {
                    return(editor);
                }
            }

            return(null);
        }
Exemple #2
0
        private void BackupConfig_OpenText()
        {
            ConfigManager.User.Script_OpenFileList.Value.Clear();

            foreach (ScriptWindow_CodeEditor editor in DockPanel_Main.GetDocumentControls())
            {
                /* 現在の状態を保存 */
                editor.SaveScriptFile();

                /* 開いているスクリプトを保存 */
                ConfigManager.User.Script_OpenFileList.Value.Add(editor.ScriptPath);
            }
        }