예제 #1
0
 public static void FillStatusContainer(ListView lstStatus)
 {
     lstStatus.Items.Clear();
     foreach (string strAppname in AppNames)
     {
         ClsStatusContainer obj   = new ClsStatusContainer(strAppname);
         ListViewItem       item1 = new ListViewItem(obj.Product);
         item1.SubItems.Add(obj.Driver);
         item1.SubItems.Add(obj.Status);
         item1.SubItems.Add(obj.MoreInfo);
         lstStatus.Items.AddRange(new ListViewItem[] { item1 });
     }
 }
예제 #2
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);
         }
     }
 }
예제 #3
0
 private void FrmHome_Load(object sender, EventArgs e)
 {
     ClsStatusContainer.FillStatusContainer(lstStatus);
     ClsStatusContainer.LoadProgressBar(prgbStatus, lblProgress);
 }