コード例 #1
0
ファイル: Document.cs プロジェクト: pedipanol/mml2vgm
        public Document(Setting setting)
        {
            gwiFullPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "(新規mmlファイル).gwi");
            errBox      = null;
            wrnBox      = null;
            InitFolderTree();
            editor      = new FrmEditor(setting);
            editor.Text = Path.GetFileName(gwiFullPath + "*");
            string filename = Path.Combine(System.Windows.Forms.Application.StartupPath, "Template.gwi");

            editor.azukiControl.Text = "";
            try
            {
                editor.azukiControl.Text = File.ReadAllText(filename);
            }
            catch
            {
                ;
            }
            editor.azukiControl.ClearHistory();
            editor.Tag = this;
            editor.azukiControl.Tag = this;
            isNew = true;
            edit  = false;
        }
コード例 #2
0
        public Document(Setting setting, bool isMUC)
        {
            gwiFullPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "(新規mmlファイル).gwi");
            errBox      = null;
            wrnBox      = null;
            InitFolderTree();
            editor      = new FrmEditor(setting, isMUC);
            editor.Text = Path.GetFileName(gwiFullPath + "*");
            string filename = Path.Combine(System.Windows.Forms.Application.StartupPath, "Template.gwi");

            editor.azukiControl.Text = "";
            try { editor.azukiControl.Text = File.ReadAllText(filename); } catch {; }
            editor.azukiControl.ClearHistory();
            editor.Tag = this;
            editor.azukiControl.Tag = this;
            isNew         = true;
            edit          = false;
            compileStatus = EnmCompileStatus.None;
            srcFileFormat = EnmMmlFileFormat.GWI;
            dstFileFormat = EnmFileFormat.unknown;
            compiledData  = null;
        }