示例#1
0
文件: IO_Open.CS 项目: HumMod/editor
    public static void Open(String Filename)
    {
        String Content = IO_Reader.Read(Filename);

        TabManager.Add(Filename, Content);
        State.FilesOpen();
    }
示例#2
0
文件: IO_New.CS 项目: HumMod/editor
    public static void Call()
    {
        Index++;

        String Filename = "No Name " + Index.ToString();
        String Content  = "";

        if (GeneralRegistry.GetUseTemplateFile())
        {
            Content = IO_Reader.Read(GeneralRegistry.GetTemplateFile());
        }

        TabManager.Add(Filename, Content);
        State.FilesOpen();
    }