파일일자 변경 ToLocalTime

This commit is contained in:
2025-03-18 13:46:23 +09:00
parent f57a9ae1ff
commit fda27adace
6 changed files with 48 additions and 29 deletions

View File

@@ -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<string, object> Buttons { get; set; } = new Dictionary<string, object>();
public List<DynamicControl> Buttons { get; set; } = new List<DynamicControl>();
public FrmMain()
{
@@ -21,7 +23,7 @@ namespace DDUtilityApp
this.SetEventHandler();
}
public FrmMain(Dictionary<string, object> args) : this()
public FrmMain(List<DynamicControl> 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<Button> lstControls = new List<Button>();
foreach(string name in this.Buttons.Keys)
foreach(DynamicControl obj in this.Buttons)
{
object obj = this.Buttons[name];
Button button = new Button();
button.Text = name;
button.Text = obj.Name;
button.Size = new Size(btnWidth, btnHeight);
button.Dock = DockStyle.Top;
button.TabIndex = tabIndex++;
button.Tag = obj;
button.Tag = obj.Value;
button.Visible = obj.Visible | isAdmin;
button.Click += Button_Click;
lstControls.Add(button);
}