Esempio n. 1
0
        private Boolean fncSoftwareExDate()
        {
            try
            {
                string sqlQuery             = "";
                System.Data.DataSet dsCheck = new System.Data.DataSet();
                clsConnection       clscon  = new clsConnection();
                sqlQuery = "select exDate,isInActive from  tbl_varMenu";
                clscon.GTRFillDatasetWithSQLCommand(ref dsCheck, sqlQuery);
                dsCheck.Tables[0].TableName = "CheckDate";
                DataRow dr;

                dr            = dsCheck.Tables["CheckDate"].Rows[0];
                dtCheck.Value = dr["exDate"];
                string isInactive = dr["isInActive"].ToString();
                if (dtCheck.Value.ToString() == DateTime.Now.Date.ToString() || isInactive == "1")
                {
                    sqlQuery = "update tbl_varMenu set isInActive=1";
                    clscon.GTRSaveDataWithSQLCommand(sqlQuery);
                    frmMaster frm = new frmMaster();
                    frm.Close();
                    return(true);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            return(false);
        }
Esempio n. 2
0
        private void frmLogin_FormClosing(object sender, FormClosingEventArgs e)
        {
            clsForm = null;
            clsProc = null;
            clsM    = null;

            //ParentForm.Dispose();
            FM = null;
        }
Esempio n. 3
0
        private Boolean fncSoftwareExDateDB()
        {
            if (clsMain.strValidationDB == "GT!@No")
            {
                frmMaster frm = new frmMaster();
                frm.Close();
                MessageBox.Show("System32 dll File Missing");
                return(true);
            }

            return(false);
        }
Esempio n. 4
0
 public frmLogin(frmMaster fm)
 {
     InitializeComponent();
     FM = fm;
 }