示例#1
0
        void IsDBExists()
        {
            oDatabase = new DataAccess.SystemFunction();
            if (!oDatabase.IsDatabaseExits())
            {
                oFrmMsgBox             = new Forms.frmMessageBox("DATABASE DOES NOT EXISTS. PLEASE RESTORE FIRST THE DATABASE. THANK YOU");
                oFrmMsgBox.MessageType = Forms.frmMessageBox.MESSAGE_TYPE.INFO;
                oFrmMsgBox.ShowDialog();

                Maintenance.frmBackupRestoreDB oFrmDB = new Maintenance.frmBackupRestoreDB();
                oFrmDB.ShowDialog();

                return;
            }
        }
示例#2
0
        private void btnLock_Click(object sender, EventArgs e)
        {
            oDatabase = new DataAccess.SystemFunction();
            if (!oDatabase.IsDatabaseExits())
            {
                oFrmMsgBox             = new Forms.frmMessageBox("DATABASE DOES NOT EXISTS. PLEASE RESTORE FIRST THE DATABASE. THANK YOU");
                oFrmMsgBox.MessageType = Forms.frmMessageBox.MESSAGE_TYPE.INFO;
                oFrmMsgBox.ShowDialog();

                Maintenance.frmBackupRestoreDB oFrmDB = new Maintenance.frmBackupRestoreDB();
                oFrmDB.ShowDialog();

                return;
            }

            ClearControls();
            Forms.frmLock oFrm = new Forms.frmLock(eVariable.sPassword);
            oFrm.ShowDialog();
        }
示例#3
0
 private void btnBackUpRestore_Click(object sender, EventArgs e)
 {
     ClearControls();
     Maintenance.frmBackupRestoreDB oFrm = new Maintenance.frmBackupRestoreDB();
     oFrm.ShowDialog();
 }