Пример #1
0
 private void btnInstall_Click(object sender, EventArgs e)
 {
     if (chkFoxPro.Checked)
     {
         bool isInstalled = ClsInstall.isDriverInstalled("Microsoft Visual FoxPro OLE DB Provider");
         if (isInstalled)
         {
             MessageBox.Show("Microsoft Visual FoxPro OLE DB Provider is Already Installed", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
         else
         {
             InstallFile(GFoxProFilePath);
             ClsStatusContainer.FillStatusContainer(lstStatus);
             ClsStatusContainer.LoadProgressBar(prgbStatus, lblProgress);
         }
     }
     if (chkMySQLODBC.Checked == true)
     {
         bool isInstalled = ClsInstall.isDriverInstalled("MySQL Connector/ODBC 5.1");
         if (isInstalled == true)
         {
             MessageBox.Show("MySQL Connector/ODBC 5.1 is Already Installed", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
         else
         {
             InstallFile(GMysqlPath);
             ClsStatusContainer.FillStatusContainer(lstStatus);
             ClsStatusContainer.LoadProgressBar(prgbStatus, lblProgress);
         }
     }
     if (chkFirebirdODBC.Checked == true)
     {
         bool isInstalled = ClsInstall.isDriverInstalled("Firebird/InterBase(r) ODBC driver 2.0.1.152");
         if (isInstalled == true)
         {
             MessageBox.Show("Firebird/InterBase(r) ODBC driver 2.0.1.152 is Already Installed", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
         else
         {
             InstallFile(GFirebirdPath);
             ClsStatusContainer.FillStatusContainer(lstStatus);
             ClsStatusContainer.LoadProgressBar(prgbStatus, lblProgress);
         }
     }
 }
Пример #2
0
 private void FrmHome_Load(object sender, EventArgs e)
 {
     ClsStatusContainer.FillStatusContainer(lstStatus);
     ClsStatusContainer.LoadProgressBar(prgbStatus, lblProgress);
 }