Ejemplo n.º 1
0
        private void biModifyModel_Click(object sender, EventArgs e)
        {
            var model = GetSelectModel();

            if (model == null)
            {
                WinInfoHelper.ShowInfoWindow(this, "选择修改的模板!");
                return;
            }
            FrmVerModelEditor modifyModel = new FrmVerModelEditor(model);

            modifyModel.ShowDialog(this);
            if (modifyModel.IsChanged)
            {
                InitTree();
            }
        }
Ejemplo n.º 2
0
        private void biNewVerModel_Click(object sender, EventArgs e)
        {
            FrmVerModelEditor newModel = null;

            if (modelTree.SelectedNode.Tag is FileInfo)
            {
                newModel = new FrmVerModelEditor(modelTree.SelectedNode.Tag as FileInfo);
            }
            else
            {
                newModel = new FrmVerModelEditor();
            }
            newModel.ShowDialog(this);
            if (newModel.IsChanged)
            {
                InitTree();
            }
        }