strPin needs to be static to access from frmMain.

Adjust PB&J to clear strPin after passing to frmMain.
This commit is contained in:
kougyokugentou 2021-01-13 20:13:31 -08:00
parent 3435e6161a
commit c16b88c5b8

View File

@ -17,7 +17,7 @@ namespace GreatHomeChildcare
const string DEFAULT_PIC_TAG = "DefaultPic";
const string CUSTOM_PIC_TAG = "dickpic";
string strPin = String.Empty;
public static string strPin = String.Empty;
public frmPinEntry()
{
@ -77,10 +77,9 @@ namespace GreatHomeChildcare
if(IsValidLogin(strPin))
{
btnCE_Click(this, EventArgs.Empty);
frm2.Show();
Hide();
btnCE_Click(this, EventArgs.Empty);
}
}