patrick.xu
2021-05-24 3c583b1091133e4af23c2534ae96bd094c132d58
ConfigPassword.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
@@ -20,7 +21,13 @@
        private void btnOK_Click(object sender, EventArgs e)
        {
            string password = "xs1234";
            string password = "";
            password = ConfigurationManager.AppSettings["Password"];
            if (string.IsNullOrWhiteSpace(password))
            {
                password = "xs1234";
            }
            if (tbPassWord.Text.ToUpper().Equals(password.ToUpper()))
            {
                this.DialogResult = DialogResult.OK;