Example #1
0
        void miT4Project_Click(object sender, EventArgs e)
        {
            if (Project == null)
            {
                CMessageBox.Show(this, "没有项目文件,请新建或者载入");
                return;
            }
            if (_uiT4Setting == null || _uiT4Setting.IsDisposed)
            {
                _uiT4Setting = new T4SettingFrm(this);
            }
            ToolStripMenuItem xsender = sender as ToolStripMenuItem;

            _uiT4Setting.Tag      = Project;
            _uiT4Setting.CodeMode = CodeModes.Project;
            _uiT4Setting.TTFile   = xsender.Tag.ToString();
            //_uiT4Setting.LoadSettings();
            //Navigate(_uiT4Setting);
            _uiT4Setting.Show();
        }
Example #2
0
        void BuildT4Project(object sender, EventArgs e)
        {
            if (Project == null)
            {
                CMessageBox.Show(this, "没有项目文件,请新建或者载入");
                return;
            }
            if (t4SettingFrm == null || t4SettingFrm.IsDisposed)
            {
                t4SettingFrm = new T4SettingFrm(this);
            }
            ToolStripMenuItem xsender = sender as ToolStripMenuItem;

            t4SettingFrm.Tag      = Project;
            t4SettingFrm.CodeMode = CodeModes.Project;
            t4SettingFrm.TTFile   = xsender.Tag.ToString();
            //t4SettingFrm.LoadSettings();
            //Navigate(t4SettingFrm);
            t4SettingFrm.Show();
        }