private void OnChangeHeadMainItem(object sender, EventArgs e) { if (!ModelContext.MetaModel.IsForm(this.m_tp.TemplateType) && !ModelContext.MetaModel.IsCard(this.m_tp.TemplateType)) { this.m_tp.Item.Revision.ReleaseDesc = this.GetLatestHeadMainInfo(); DlgChangeHeadMainItem item = new DlgChangeHeadMainItem(this.m_tp); if (item.ShowDialog() == DialogResult.OK) { this.m_tp.IsSaved = false; } } }
private void SetTypeTree(TreeView tv) { DlgChangeHeadMainItem.CreateTypeTree(tv); }