Revision: Change firstTimeRun to GetNumAdmins
This commit is contained in:
parent
e2f50bec03
commit
fbbe66f99f
@ -124,12 +124,12 @@ namespace GreatHomeChildcare
|
||||
*/
|
||||
private void frmPinEntry_Load(object sender, EventArgs e)
|
||||
{
|
||||
bool bIsFirstTime = false;
|
||||
int num_admins = 0;
|
||||
DialogResult dr;
|
||||
|
||||
bIsFirstTime = SqliteDataAccess.isFirstTimeRun();
|
||||
num_admins = SqliteDataAccess.GetNumAdmins();
|
||||
|
||||
if(bIsFirstTime)
|
||||
if(num_admins <= 0)
|
||||
{
|
||||
dr = MessageBox.Show("Program not setup yet. Setup now?", "Great Home Childcare", MessageBoxButtons.YesNo, MessageBoxIcon.None);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user