using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NRF52382_Test
{
public partial class FormLogin : Form
{
public FormLogin()
{
InitializeComponent();
}
private void btLogin_Click(object sender, EventArgs e)
{
if (tbPassWord.Text == "")
{
MessageBox.Show("please input password.");
return;
}
if (tbPassWord.Text == "147528")
{
//FormConfig formCfg = new FormConfig();
//formCfg.ShowDialog();
this.DialogResult = DialogResult.OK;
this.Close();
}
else
{
MessageBox.Show("Password Error!");
}
}
private void btCancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}