private void panelCodeAddSearch_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     DisposeAllButThis();
     if (UtilityClass.UtilityOperations.checkRegistryValue())
     {
         UIForms.LazzyCoderSearchHome newInstance = new UIForms.LazzyCoderSearchHome();
         newInstance.MdiParent = this;
         //newInstance.Height = this.Height;
         //newInstance.Width = this.Width;
         newInstance.Show();
         panelCodeAddSearch.BackColor = Color.FromArgb(66, 131, 222);
         panelProperty.BackColor      = Color.DimGray;
         panelXML.BackColor           = Color.DimGray;
         panelCompare.BackColor       = Color.DimGray;
     }
     else
     {
         panelCodeAddSearch.BackColor = Color.FromArgb(66, 131, 222);
         panelProperty.BackColor      = Color.DimGray;
         panelXML.BackColor           = Color.DimGray;
         panelCompare.BackColor       = Color.DimGray;
         UserLogin newLogin = new UserLogin();
         newLogin.MdiParent = this;
         newLogin.Show();
     }
     Cursor.Current = Cursors.Default;
 }
        private void NewHome_Load(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            //UtilityClass.UtilityOperations.updateRegistryValue("", "", true);
            //UtilityClass.UtilityOperations.checkRegistryValue();
            labelVersion.Text = this.ProductVersion.ToString();

            DisposeAllButThis();
            if (UtilityClass.UtilityOperations.checkRegistryValue())
            {
                UIForms.LazzyCoderSearchHome newInstance = new UIForms.LazzyCoderSearchHome();
                newInstance.MdiParent = this;
                newInstance.Show();
                panelCodeAddSearch.BackColor = Color.FromArgb(66, 131, 222);
                panelProperty.BackColor      = Color.DimGray;
                panelXML.BackColor           = Color.DimGray;
                panelCompare.BackColor       = Color.DimGray;
            }
            else
            {
                panelCodeAddSearch.BackColor = Color.FromArgb(66, 131, 222);
                panelProperty.BackColor      = Color.DimGray;
                panelXML.BackColor           = Color.DimGray;
                UserLogin newLogin = new UserLogin();
                newLogin.MdiParent = this;
                newLogin.Show();
            }
            Cursor.Current = Cursors.Default;
        }