using JWH; using System; using System.Collections.Generic; using System.Configuration; using System.Drawing; using System.Windows.Forms; using Telerik.WinControls.UI; namespace DDUtilityApp { public partial class FrmMain : Form { public object SelectedObject { get; set; } = null; public List Buttons { get; set; } = new List(); public FrmMain() { InitializeComponent(); this.SetLayout(); this.SetEventHandler(); } public FrmMain(List 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 { bool isAdmin = false; string adminPWD = ConfigurationManager.AppSettings["ADMIN"]; if (adminPWD != null && adminPWD == "daeduck!1") isAdmin = true; int btnWidth = 200; int btnHeight = 32; int tabIndex = 10; List