jace.tang
2023-02-11 ed8d469ccdc0e627d8f180bb92a9d78dbdb008b1
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;