using JWH; using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace DDUtilityApp { public partial class FrmMain : Form { public object SelectedObject { get; set; } = null; public Dictionary Buttons { get; set; } = new Dictionary(); public FrmMain() { InitializeComponent(); this.SetLayout(); this.SetEventHandler(); } public FrmMain(Dictionary args) : this() { this.Buttons = args; this.SetButtons(); } protected void SetLayout() { } protected void SetEventHandler() { this.Load += FrmMain_Load; } private void FrmMain_Load(object sender, EventArgs e) { this.SetButtons(); } /// /// 동적으로 버튼 생성 /// private void SetButtons() { try { int btnWidth = 200; int btnHeight = 32; int tabIndex = 0; List