strPin needs to be static to access from frmMain.
Adjust PB&J to clear strPin after passing to frmMain.
This commit is contained in:
parent
3435e6161a
commit
c16b88c5b8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user