Ejemplo n.º 1
0
        public void OpenProductPage(object sender, EventArgs e)
        {
            if (masterPage.CurrentUser.IsLoginValid())
            {
                if (productPage == null)
                {
                    productPage = new ProductPage(masterPage);
                }

                masterPage.OpenChildForm(productPage, productPage.LoginRequired);
                ThemeSwitcher.ChangeTheme(masterPage.Controls, !masterPage.IsLightmode);
                UpdateHeader();
                SoundPlayer Popup2 = new SoundPlayer(Properties.Resources.Popup2);
                Popup2.Play();
            }
            else
            {
                masterPage.LoginPage.SetLoginError("LoginRequired");
            }
        }