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