public void ShowDialogueNodeProperties(DocumentDialogue document, TreeNode treeNode, DialogueNode dialogueNode) { //SetDoubleBuffered(LayoutPanel); WIN32.StopRedraw(this); //SuspendLayout(); Clear(); foreach (CustomPropertiesSlot slot in EditorCore.CustomPropertiesSlots) { if (slot.FormType != null && slot.DialogueNodeType.IsAssignableFrom(dialogueNode.GetType())) { IFormProperties form = Activator.CreateInstance(slot.FormType) as IFormProperties; form.Init(document, treeNode, dialogueNode); layoutPanel.Controls.Add(form as UserControl); } } layoutPanel.VerticalScroll.Value = 0; //ResumeLayout(); WIN32.ResumeRedraw(this); this.Refresh(); }