jace.tang
2022-06-17 9bc010fc2b51ff02d1f7d09accc2847e3d925777
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;