private void OpenModelDesigner() { TreeNode Node = TemplateTree.SelectedNode; Boolean IsModule = Convert.ToBoolean(Node.Tag); if (IsModule) { ModelDesigner moduleDesigner = new ModelDesigner(new Guid(Node.Name)); Form Owner = Cache.CustomCache[SystemString.主窗口] as Form; moduleDesigner.Location = Owner.PointToScreen(Owner.ClientRectangle.Location); moduleDesigner.Size = Owner.ClientRectangle.Size; moduleDesigner.ShowDialog(Owner); } }
public ReferenceSheetDialog(ModelDesigner _designer) { InitializeComponent(); this.designer = _designer; }