private void form_login_Load(object sender, EventArgs e)
        {
            //initialize the oracle database controller
            odbc = new OracleDatabaseController();

            //inittialize all the other forms to be used from this form
            otlf = new OneTimeLoginForm();
            suppliers = new Suppliers();
            products = new Products();
            productCatagories = new ProductCatagories();
            order = new Order();
            bill = new Bill();
            StaffBuffer.loggedIn = false;
            renderForm();
        }
 //Open the Create new account form on a user clicking the button
 //[Create New]
 private void login_btn_create_new_Click(object sender, EventArgs e)
 {
     if ((StaffBuffer.admin && otlf.IsDisposed))
     {
         mode = CREATE;
         renderForm();
     }
     else if (odbc.isStaffEmpty())
     {
         StaffBuffer.flushBuffer();
         odbc.getNextMaxStaffId();
         getFromBuffer();
         mode = CREATE;
         renderForm();
     }
     else if (!StaffBuffer.admin)
     {
         StaffBuffer.flushBuffer();
         odbc.getNextMaxStaffId();
         getFromBuffer();
         otlf = new OneTimeLoginForm();
         otlf.Show();
     }
 }
 private void form_login_Load(object sender, EventArgs e)
 {
     odbc = new OracleDatabaseController();
     otlf = new OneTimeLoginForm();
     renderForm();
 }