From fda27adaceddcce01d04bdcff8f4a3407cacdc96 Mon Sep 17 00:00:00 2001 From: T001084 Date: Tue, 18 Mar 2025 13:46:23 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=9D=BC=EC=9E=90=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20ToLocalTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DDUtilityApp/App.config | 2 +- DDUtilityApp/FrmMain.cs | 21 ++++++----- DDUtilityApp/LOGPARSER/FrmEqSelector.cs | 6 ++-- DDUtilityApp/MESDOWNLOADER/FrmServerLog.cs | 2 +- DDUtilityApp/Program.cs | 42 ++++++++++++++-------- DDUtilityApp/Properties/AssemblyInfo.cs | 4 +-- 6 files changed, 48 insertions(+), 29 deletions(-) diff --git a/DDUtilityApp/App.config b/DDUtilityApp/App.config index 03a2ef0..dbf4a5f 100644 --- a/DDUtilityApp/App.config +++ b/DDUtilityApp/App.config @@ -6,7 +6,7 @@ - + diff --git a/DDUtilityApp/FrmMain.cs b/DDUtilityApp/FrmMain.cs index d8e5792..c077740 100644 --- a/DDUtilityApp/FrmMain.cs +++ b/DDUtilityApp/FrmMain.cs @@ -1,8 +1,10 @@ using JWH; using System; using System.Collections.Generic; +using System.Configuration; using System.Drawing; using System.Windows.Forms; +using Telerik.WinControls.UI; namespace DDUtilityApp { @@ -11,7 +13,7 @@ namespace DDUtilityApp public object SelectedObject { get; set; } = null; - public Dictionary Buttons { get; set; } = new Dictionary(); + public List Buttons { get; set; } = new List(); public FrmMain() { @@ -21,7 +23,7 @@ namespace DDUtilityApp this.SetEventHandler(); } - public FrmMain(Dictionary args) : this() + public FrmMain(List args) : this() { this.Buttons = args; this.SetButtons(); @@ -48,21 +50,24 @@ namespace DDUtilityApp { 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 = 0; + int tabIndex = 10; List