Beispiel #1
0
        public bool GetData()
        {
            dLogin objdLogin;

            try
            {
                objdLogin = new dLogin();
                if (objdLogin.GetData(this))
                {
                    FillProperties();
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdLogin = null;
            }
        }
Beispiel #2
0
        public bool LoginAuthentication(string TypPassword)
        {
            dLogin objdLogin;

            try
            {
                objdLogin = new dLogin();
                if (GetData())
                {
                    if (this.password.Equals(TypPassword))
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdLogin = null;
            }
            return(true);
        }
Beispiel #3
0
 public bool SaveData()
 {
     try
     {
         dLogin objdLogin = new dLogin();
         FillDataTable();
         objdLogin.SaveData(this);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
Beispiel #4
0
        public bool GetLoginList(out DataTable dtLoginList)
        {
            dLogin objdLogin = new dLogin();

            try
            {
                objdLogin.GetLoginList(out dtLoginList);
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdLogin = null;
            }
        }