public void frm_system_info_Load(object sender, EventArgs e)
        {
            //Code By ytheekshana
            lbl_username.Text = "Hello " + Environment.UserName;
            Color getcolor = Properties.Settings.Default.ThemeColor;

            lblHeader.BackColor    = getcolor;
            btnClose.BackColor     = getcolor;
            btnMinimize.BackColor  = getcolor;
            label13.BackColor      = getcolor;
            label14.BackColor      = getcolor;
            label15.BackColor      = getcolor;
            pb_user.BackColor      = getcolor;
            lbl_username.BackColor = getcolor;
            pb_battery.BackColor   = getcolor;
            batteryuncharge        = getcolor;

            SystemEvents.PowerModeChanged -= new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
            SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
            ShowBattery();
            lbl_app_version.Text = "Version " + frm_detect.Version + " - October 2020";
            ComputerInfo ci = new ComputerInfo();

            totalram = ci.TotalPhysicalMemory / 1024 / 1024;
            lblInstalledmemorydis.Text = (totalram).ToString() + "MB";
            lblsystemmemorydis.Text    = (totalram).ToString() + "MB";
            timer1.Start();
            timer2.Start();
            lblsystemlangdis.Text = System.Globalization.CultureInfo.CurrentUICulture.DisplayName;

            if (System.Environment.Is64BitOperatingSystem == true)
            {
                Bit = "64 Bit";
            }
            else
            {
                Bit = "32 Bit";
            }
            lblosnamedis.Text   = ci.OSFullName + " (" + Bit + ")";
            lblcompnamedis.Text = System.Environment.MachineName;

            //Computer System
            //Code By ytheekshana
            lblsystemmanufacturerdis.Text = frm_detect.systemmanufacturerdis;
            lblsystemmodeldis.Text        = frm_detect.systemmodeldis;

            //Operating System
            //Code By ytheekshana
            lblososnamedis.Text = ci.OSFullName;
            string releaseId = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", "").ToString();

            if (lblososnamedis.Text.Contains("Microsoft Windows 10") || lblososnamedis.Text.Contains("Windows Server 2016"))
            {
                switch (releaseId)
                {
                case "1507":
                    lblosversiondis.Text = releaseId + " - Initial Release";
                    break;

                case "1511":
                    lblosversiondis.Text = releaseId + " - November Update";
                    break;

                case "1607":
                    lblosversiondis.Text = releaseId + " - Anniversary Update";
                    break;

                case "1703":
                    lblosversiondis.Text = releaseId + " - Creators Update";
                    break;

                case "1709":
                    lblosversiondis.Text = releaseId + " - Fall Creators Update";
                    break;

                case "1803":
                    lblosversiondis.Text = releaseId + " - April 2018 Update";
                    break;

                case "1809":
                    lblosversiondis.Text = releaseId + " - October 2018 Update";
                    break;

                case "1903":
                    lblosversiondis.Text = releaseId + " - May 2019 Update";
                    break;

                case "1909":
                    lblosversiondis.Text = releaseId + " - November 2019 Update";
                    break;

                case "2004":
                    lblosversiondis.Text = releaseId + " - April 2020 Update";
                    break;

                default:
                    lblosversiondis.Text = releaseId + " - Unknown Update";
                    break;
                }
            }
            else
            {
                lblosversiondis.Text = ci.OSVersion;
            }
            lblosplatformdis.Text    = ci.OSPlatform;
            lblosbuildnumberdis.Text = frm_detect.osbuildnumberdis;
            if (frm_detect.osantivirusdis == "")
            {
                lblosantivirusdis.Text = "Not Installed";
            }
            else
            {
                lblosantivirusdis.Text = frm_detect.osantivirusdis;
            }
            lblosregistereduserdis.Text = frm_detect.osregistereduserdis;

            lblinstalldatedis.Text = frm_detect.InstallDate.Day.ToString() + " " + frm_detect.InstallDate.ToString("MMMM") + " " + frm_detect.InstallDate.Year.ToString();

            OperatingSystem os = Environment.OSVersion;

            if (os.ServicePack == "")
            {
                lblosservicepackdis.Text = "None";
            }
            else
            {
                lblosservicepackdis.Text = os.ServicePack;
            }

            //CPU
            //Code By ytheekshana
            lblcpunamedis.Text         = frm_detect.cpunamedis;
            lblcpunamedis2.Text        = frm_detect.cpunamedis2;
            lblcoresdis.Text           = System.Environment.ProcessorCount.ToString();
            lblcputhreadsdis.Text      = frm_detect.cputhreadsdis;
            lblsocketdis.Text          = frm_detect.socketdis;
            lblclockspeeddis.Text      = frm_detect.clockspeeddis;
            lblcpumanufacturerdis.Text = frm_detect.cpumanufacturerdis;
            lblcpurevisiondis.Text     = frm_detect.cpurevisiondis;
            lbll2cachesizedis.Text     = frm_detect.l2cachesizedis + "KB";

            if (Convert.ToInt32(frm_detect.l3cachesizedis) > 100)
            {
                lbll3cachesizedis.Text = (Convert.ToInt32(frm_detect.l3cachesizedis)).ToString() + "KB";
            }
            else
            {
                lbll3cachesizedis.Text = (Convert.ToInt32(frm_detect.l3cachesizedis) * 1024).ToString() + "KB";
            }


            //MotherBoard
            //Code By ytheekshana
            lblmboardmanufacturerdis.Text = frm_detect.mboardmanufacturerdis;
            lblmboardmodeldis.Text        = frm_detect.mboardmodeldis;

            //Storage
            //Code By ytheekshana
            lblprimaryHardModeldis.Text = frm_detect.primaryHardModeldis;
            if (frm_detect.primaryHardsizedis != "")
            {
                lblprimaryHardsizedis.Text = (Math.Round((Convert.ToDouble(frm_detect.primaryHardsizedis) / 1024 / 1024 / 1024), 2)).ToString() + " GB";
            }
            lblprimaryHardpartitionsDis.Text = frm_detect.primaryHardpartitionsDis;
            lblprimaryharddisktypedis.Text   = frm_detect.primaryharddisktypedis;

            if (String.IsNullOrEmpty(frm_detect.secondaryHardsizedis))
            {
                groupBox11.Visible = false;
            }
            else
            {
                lblsecondaryHardModeldis.Text = frm_detect.secondaryHardModeldis;
                if (frm_detect.secondaryHardsizedis != "")
                {
                    lblsecondaryHardsizedis.Text = (Math.Round((Convert.ToDouble(frm_detect.secondaryHardsizedis) / 1024 / 1024 / 1024), 2)).ToString() + " GB";
                }
                lblsecondaryHardpartitionsDis.Text = frm_detect.secondaryHardpartitionsDis;
                lblsecondaryHarddisktypedis.Text   = frm_detect.secondaryHarddisktypedis;
                groupBox11.Visible = true;
            }

            //BIOS
            //Code By ytheekshana
            lblbiosnamedis.Text         = frm_detect.biosnamedis;
            lblbiosmanufacturerdis.Text = frm_detect.biosmanufacturerdis;
            lblbiosversiondis.Text      = frm_detect.biosversiondis;
            lblsystembiosdis.Text       = frm_detect.systembiosdis;
            lblbiosreleasedatedis.Text  = frm_detect.Biosreleasedate.Day + " " + frm_detect.Biosreleasedate.ToString("MMMM") + " " + frm_detect.Biosreleasedate.Year;

            //GPU
            //Code By ytheekshana
            if (String.IsNullOrEmpty(frm_detect.secondarygpunamedis))
            {
                cmbgpu.Items.Clear();
                cmbgpu.Items.Add(frm_detect.primarygpunamedis);
                cmbgpu.SelectedItem = frm_detect.primarygpunamedis;
            }
            else
            {
                cmbgpu.Items.Clear();
                cmbgpu.Items.Add(frm_detect.primarygpunamedis);
                cmbgpu.Items.Add(frm_detect.secondarygpunamedis);
                cmbgpu.SelectedItem = frm_detect.primarygpunamedis;
            }

            lblsystemdatetimedis.Text = frm_detect.systemdatetimedis;



            //System Up Time
            //Code By ytheekshana
            SystemUpTime = ManagementDateTimeConverter.ToDateTime(frm_detect.systemuptime);
            int osuptime  = Convert.ToInt32(DateTime.Now.Subtract(SystemUpTime).TotalMinutes);
            int uphours   = osuptime / 60;
            int upminutes = osuptime % 60;

            if (uphours == 0 && upminutes != 0)
            {
                lblsystemupdis.Text = upminutes.ToString() + " Minutes";
            }
            else if (upminutes == 0 && uphours != 0)
            {
                lblsystemupdis.Text = uphours.ToString() + " Hours";
            }
            else
            {
                lblsystemupdis.Text = uphours.ToString() + " Hours & " + upminutes.ToString() + " Minutes";
            }

            //Memory
            //Code By ytheekshana
            int    ramtypeno = Convert.ToInt32(frm_detect.memorytypedis);
            String ramtype;

            switch (ramtypeno)
            {
            case 1: ramtype = "Other"; break;

            case 2: ramtype = "DRAM"; break;

            case 3: ramtype = "Synchronous DRAM"; break;

            case 4: ramtype = "Cache DRAM"; break;

            case 5: ramtype = "EDO"; break;

            case 6: ramtype = "EDRAM"; break;

            case 7: ramtype = "VRAM"; break;

            case 8: ramtype = "SRAM"; break;

            case 9: ramtype = "RAM"; break;

            case 10: ramtype = "ROM"; break;

            case 11: ramtype = "Flash"; break;

            case 12: ramtype = "EEPROM"; break;

            case 13: ramtype = "FEPROM"; break;

            case 14: ramtype = "EPROM"; break;

            case 15: ramtype = "CDRAM"; break;

            case 16: ramtype = "3DRAM"; break;

            case 17: ramtype = "SDRAM"; break;

            case 18: ramtype = "SGRAM"; break;

            case 19: ramtype = "RDRAM"; break;

            case 20: ramtype = "DDR"; break;

            case 21: ramtype = "DDR2"; break;

            case 22: ramtype = "DDR2 FB-DIMM"; break;

            default: if (ramtypeno == 0 || ramtypeno > 22)
                {
                    ramtype = "DDR3";
                }
                else
                {
                    ramtype = "Unknown";
                } break;
            }
            lblmemorytypedis.Text  = ramtype;
            lblmemoryslotsdis.Text = frm_detect.memoryslotsdis;
            //TooTip
            //Code By ytheekshana
            ToolTip gpuname = new ToolTip();

            gpuname.SetToolTip(lblgpunamedis, lblgpunamedis.Text);

            //OS-Storage  Logo
            //Code By ytheekshana
            cls_images mi = new cls_images();

            mi.OSImage(lblososnamedis.Text);
            mi.PrimaryStorageImage(lblprimaryHardModeldis.Text);
            if (frm_detect.secondaryHardsizedis != "")
            {
                mi.SecondaryStorageImage(lblsecondaryHardModeldis.Text);
            }

            //Network
            //Code By ytheekshana
            ni = NetworkInterface.GetAllNetworkInterfaces();
            cmbnetworkadapter.Items.Clear();
            foreach (var adapter in ni)
            {
                if (adapter.Description.ToLower().Contains("tunneling") || adapter.Description.ToLower().Contains("bluetooth") || adapter.Description.ToLower().Contains("loopback") || adapter.Description.ToLower().Contains("isatap"))
                {
                }
                else
                {
                    cmbnetworkadapter.Items.Add(adapter.Name);
                }
            }
            if (cmbnetworkadapter.Items.Count > 0)
            {
                cmbnetworkadapter.SelectedIndex = 0;
            }

            //WEI
            lblWEIProcessordis.Text      = frm_detect.WEIProcessordis;
            lblWEIMemorydis.Text         = frm_detect.WEIMemorydis;
            lblWEIGraphicsdis.Text       = frm_detect.WEIGraphicsdis;
            lblWEIGamingGraphicsdis.Text = frm_detect.WEIGamingGraphicsdis;
            lblWEIDiskdis.Text           = frm_detect.WEIDiskdis;
            lblWEITotal.Text             = frm_detect.WEITotal;
            lblgeneralRatingdis.Text     = frm_detect.WEITotal + " - Windows Experience Index";

            //Trackbar
            trackBarStress.Value = 100;
            DisplayWEI();

            //Battery
            if (frm_detect.batteryavailability == "Available")
            {
                String batterychem;
                lblbatteryvoltagedis.Text = frm_detect.batteryvoltagedis;
                switch (frm_detect.batterychemistrydis)
                {
                case "1":
                    batterychem = "Other"; break;

                case "2":
                    batterychem = "Unknown"; break;

                case "3":
                    batterychem = "Lead Acid"; break;

                case "4":
                    batterychem = "Nickel Cadmium"; break;

                case "5":
                    batterychem = "Nickel Metal Hydride"; break;

                case "6":
                    batterychem = "Lithium-ion"; break;

                case "7":
                    batterychem = "Zinc air"; break;

                case "8":
                    batterychem = "Lithium Polymer"; break;

                default:
                    batterychem = "Unkown"; break;
                }
                lblbatterychemistrydis.Text = batterychem;
            }
        }
        private void cmbnetworkadapter_SelectedIndexChanged(object sender, EventArgs e)
        {
            //Code By ytheekshana
            try
            {
                lblnetworkimage.Image = null;
                lblnetworkadapterdescriptiondis.Text = "";
                lblnetworkbytesreceiveddis.Text      = "";
                lblnetworkbytessentdis.Text          = "";
                lblnetworkdhcpenableddis.Text        = "";
                lblNetworkInterfacetypedis.Text      = "";
                lblnetworkmacdis.Text    = "";
                lblnetworkspeeddis.Text  = "";
                lblnetworkstatusdis.Text = "";

                for (a = 0; a < ni.Length; a++)
                {
                    if ((String)cmbnetworkadapter.SelectedItem == ni[a].Name)
                    {
                        break;
                    }
                }
                lblNetworkInterfacetypedis.Text      = ni[a].NetworkInterfaceType.ToString();
                lblnetworkadapterdescriptiondis.Text = ni[a].Description.ToString();

                String networkmacdis = ni[a].GetPhysicalAddress().ToString();
                int    l             = networkmacdis.Length;
                for (int i = 2; i < l; i = i + 3)
                {
                    networkmacdis = networkmacdis.Insert(i, ":");
                    l             = l + 1;
                }
                lblnetworkmacdis.Text = networkmacdis;

                if (ni[a].GetIPProperties().GetIPv4Properties().IsDhcpEnabled == false)
                {
                    lblnetworkdhcpenableddis.Text = "No";
                }
                else if (ni[a].GetIPProperties().GetIPv4Properties().IsDhcpEnabled == true)
                {
                    lblnetworkdhcpenableddis.Text = "Yes";
                }
                lblnetworkspeeddis.Text  = (Convert.ToInt32(ni[a].Speed) / 1024 / 1024).ToString() + " Mbps";
                lblnetworkstatusdis.Text = ni[a].OperationalStatus.ToString();

                long networkbytesreceiveddis = ni[a].GetIPv4Statistics().BytesReceived;
                long networkbytessentdis     = ni[a].GetIPv4Statistics().BytesSent;
                lblnetworkbytesreceiveddis.Text = String.Format("{0:0,0}", networkbytesreceiveddis) + " bytes";
                lblnetworkbytessentdis.Text     = String.Format("{0:0,0}", networkbytessentdis) + " bytes";
                timer4.Stop();
                timer4.Start();

                cls_images mi3 = new cls_images();
                mi3.NetworkImage(lblnetworkadapterdescriptiondis.Text);


                ToolTip networkname = new ToolTip();
                networkname.SetToolTip(lblnetworkadapterdescriptiondis, lblnetworkadapterdescriptiondis.Text);
            }
            catch
            {
                MessageBox.Show("No Information Available", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
        private void cmbgpu_SelectedIndexChanged(object sender, EventArgs e)
        {
            //Code By ytheekshana
            cls_images mi2 = new cls_images();

            if ((String)cmbgpu.SelectedItem == frm_detect.primarygpunamedis)
            {
                lblgpunamedis.Text    = frm_detect.primarygpunamedis;
                lblgpudactypedis.Text = frm_detect.primarygpudactypedis;
                lblgpumemorydis.Text  = frm_detect.primarygpumemorydis;

                if (frm_detect.primarygpuresdis != "" && String.IsNullOrEmpty(frm_detect.secondarygpuresdis))
                {
                    lblgpuresdis.Text = frm_detect.primarygpuresdis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpuresdis) && frm_detect.secondarygpuresdis != "")
                {
                    lblgpuresdis.Text = frm_detect.secondarygpuresdis;
                }
                else if (frm_detect.primarygpuresdis != "" && frm_detect.secondarygpuresdis != "")
                {
                    lblgpuresdis.Text = frm_detect.primarygpuresdis;
                }
                else
                {
                    lblgpuresdis.Text = "No Value";
                }


                if (frm_detect.primarygpubitdis != "" && String.IsNullOrEmpty(frm_detect.secondarygpubitdis))
                {
                    lblgpubitdis.Text = frm_detect.primarygpubitdis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpubitdis) && frm_detect.secondarygpubitdis != "")
                {
                    lblgpubitdis.Text = frm_detect.secondarygpubitdis;
                }
                else if (frm_detect.primarygpubitdis != "" && frm_detect.secondarygpubitdis != "")
                {
                    lblgpubitdis.Text = frm_detect.primarygpubitdis;
                }
                else
                {
                    lblgpubitdis.Text = "No Value";
                }

                if (frm_detect.primarygpurratedis != "" && String.IsNullOrEmpty(frm_detect.secondarygpurratedis))
                {
                    lblgpurratedis.Text = frm_detect.primarygpurratedis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpurratedis) && frm_detect.secondarygpurratedis != "")
                {
                    lblgpurratedis.Text = frm_detect.secondarygpurratedis;
                }
                else if (frm_detect.primarygpurratedis != "" && frm_detect.secondarygpurratedis != "")
                {
                    lblgpurratedis.Text = frm_detect.primarygpurratedis;
                }
                else
                {
                    lblgpurratedis.Text = "No Value";
                }

                lblgpumanufacturerdis.Text = frm_detect.primarygpumanufacturerdis;
                mi2.GraphicsImage(lblgpumanufacturerdis.Text);
            }
            else if ((String)cmbgpu.SelectedItem == frm_detect.secondarygpunamedis)
            {
                lblgpunamedis.Text    = frm_detect.secondarygpunamedis;
                lblgpudactypedis.Text = frm_detect.secondarygpudactypedis;
                lblgpumemorydis.Text  = frm_detect.secondarygpumemorydis;

                if (frm_detect.primarygpuresdis != "" && String.IsNullOrEmpty(frm_detect.secondarygpuresdis))
                {
                    lblgpuresdis.Text = frm_detect.primarygpuresdis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpuresdis) && frm_detect.secondarygpuresdis != "")
                {
                    lblgpuresdis.Text = frm_detect.secondarygpuresdis;
                }
                else if (frm_detect.primarygpuresdis != "" && frm_detect.secondarygpuresdis != "")
                {
                    lblgpuresdis.Text = frm_detect.secondarygpuresdis;
                }
                else
                {
                    lblgpuresdis.Text = "No Value";
                }


                if (frm_detect.primarygpubitdis != "" && String.IsNullOrEmpty(frm_detect.secondarygpubitdis))
                {
                    lblgpubitdis.Text = frm_detect.primarygpubitdis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpubitdis) && frm_detect.secondarygpubitdis != "")
                {
                    lblgpubitdis.Text = frm_detect.secondarygpubitdis;
                }
                else if (frm_detect.primarygpubitdis != "" && frm_detect.secondarygpubitdis != "")
                {
                    lblgpubitdis.Text = frm_detect.primarygpubitdis;
                }
                else
                {
                    lblgpubitdis.Text = "No Value";
                }

                if (frm_detect.primarygpurratedis != "" && String.IsNullOrEmpty(frm_detect.secondarygpurratedis))
                {
                    lblgpurratedis.Text = frm_detect.primarygpurratedis;
                }
                else if (String.IsNullOrEmpty(frm_detect.primarygpurratedis) && frm_detect.secondarygpurratedis != "")
                {
                    lblgpurratedis.Text = frm_detect.secondarygpurratedis;
                }
                else if (frm_detect.primarygpurratedis != "" && frm_detect.secondarygpurratedis != "")
                {
                    lblgpurratedis.Text = frm_detect.primarygpurratedis;
                }
                else
                {
                    lblgpurratedis.Text = "No Value";
                }

                lblgpumanufacturerdis.Text = frm_detect.secondarygpumanufacturerdis;
                mi2.GraphicsImage(lblgpumanufacturerdis.Text);
            }
        }