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; } }
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(); }
private void btnBackUpRestore_Click(object sender, EventArgs e) { ClearControls(); Maintenance.frmBackupRestoreDB oFrm = new Maintenance.frmBackupRestoreDB(); oFrm.ShowDialog(); }