示例#1
0
        internal static void PopulatePanel(List <MudData.FormulaAction> actions, FlowLayoutPanel panel, string archetypeName)
        {
            foreach (var action in actions)
            {
                var editor = new ScriptActionEditControl(action, archetypeName);
                panel.Controls.Add(editor);
            }

            panel.PerformLayout();
            Utilities.ResizeControls(panel);
            panel.Refresh();
        }
        internal static void PopulatePanel(List<MudData.FormulaAction> actions, FlowLayoutPanel panel, string archetypeName)
        {
            foreach (var action in actions)
            {
                var editor = new ScriptActionEditControl(action, archetypeName);
                panel.Controls.Add(editor);
            }

            panel.PerformLayout();
            Utilities.ResizeControls(panel);
            panel.Refresh();
        }