private void Verwijderen_btn_Click(object sender, EventArgs e)
        {
            if (masterPage.CurrentUser.IsLoginValid())
            {
                if (removePage == null)
                {
                    SoundPlayer Popup2 = new SoundPlayer(Properties.Resources.Popup2);
                    Popup2.Play();
                    removePage = new RemovePage(masterPage);
                }

                masterPage.OpenChildForm(removePage, removePage.LoginRequired);
                UpdateHeader();
            }
        }
Exemplo n.º 2
0
        private void Verwijderen_btn_Click(object sender, EventArgs e)
        {
            if (masterPage.CurrentUser.IsLoginValid())
            {
                //if (!masterPage.IsLightmode)
                //{
                //    CustomMB.ForeColor = Color.White;
                //    CustomMB.BackColor = Color.FromArgb(75, 79, 78);
                //    CustomMB.SetButtonColors(Color.White, Color.FromArgb(75, 79, 78), Color.FromArgb(55, 58, 64));
                //    CustomMB.SetWarningLabel(Properties.Resources.AlertDark3);
                //}
                if (removePage == null)
                {
                    removePage = new RemovePage(masterPage);
                }

                masterPage.OpenChildForm(removePage, removePage.LoginRequired);
            }
        }