/// <summary>
        /// Backspace gomb hatására egy ablakot vissza ugrik
        /// Csak egyet!
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Back:
                ccWindow_Main.Content = Globals.History;
                break;

            case Key.Escape:
                Message = new wMessage(1, 0);
                Globals.Main.Opacity = 0.6;
                Message.ShowDialog();
                break;
            }
        }
        /// <summary>
        /// Főmenük választása
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dpMouse_Click(object sender, MouseButtonEventArgs e)
        {
            DockPanel gomb = (DockPanel)sender;

            switch (gomb.Name.ToString())
            {
            case "dpFomenu":
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucKijelzo_1))
                {
                    ccWindow_Main.Content = new ucKijelzo_1();
                }
                break;

            case "dpFelhasznalo":
                stMenu_2_user.Visibility = Visibility.Visible;
                cs_Menu_2.Visibility     = Visibility.Hidden;
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucFelhasznalo))
                {
                    ccWindow_Main.Content = new ucFelhasznalo(0);
                }
                break;

            case "dpKijelentkezes":
                Message = new wMessage(2, 0);
                Globals.Main.Opacity = 0.6;
                Message.ShowDialog();
                break;

            case "dpYaktok":
                if (Globals.User.login.admin)
                {
                    stMenu_2_yacht.Visibility = Visibility.Visible;
                    cs_Menu_2.Visibility      = Visibility.Hidden;
                    if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucYachtok_all))
                    {
                        ccWindow_Main.Content = new ucYachtok_all();
                    }
                }
                else
                {
                    if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucYachtok))
                    {
                        ccWindow_Main.Content = new ucYachtok();
                    }
                }
                break;

            case "dpSzallitok":
                if (Globals.User.login.admin)
                {
                    stMenu_2_szallito.Visibility = Visibility.Visible;
                    cs_Menu_2.Visibility         = Visibility.Hidden;
                    if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucSzallitok_all))
                    {
                        ccWindow_Main.Content = new ucSzallitok_all();
                    }
                }
                else
                {
                    if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucSzallitok))
                    {
                        ccWindow_Main.Content = new ucSzallitok();
                    }
                }
                break;

            case "dpUzenetek":
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucUzenetek))
                {
                    ccWindow_Main.Content = new ucUzenetek();
                }
                break;

            case "dpBeallitasok":
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucBeallitasok))
                {
                    ccWindow_Main.Content = new ucBeallitasok();
                }
                break;

            case "dpInfo":
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucInfok))
                {
                    ccWindow_Main.Content = new ucInfok();
                }
                break;

            case "dpVissza1":
            case "dpVissza2":
            case "dpVissza3":
                cs_Menu_2.Visibility = Visibility.Visible;
                if (stMenu_2_user.IsVisible)
                {
                    stMenu_2_user.Visibility = Visibility.Hidden;
                }
                if (stMenu_2_yacht.IsVisible)
                {
                    stMenu_2_yacht.Visibility = Visibility.Hidden;
                }
                if (stMenu_2_szallito.IsVisible)
                {
                    stMenu_2_szallito.Visibility = Visibility.Hidden;
                }
                if (ccWindow_Main.Content == null || !(ccWindow_Main.Content is ucKijelzo_1))
                {
                    ccWindow_Main.Content = new ucKijelzo_1();
                }
                break;

            case "dpRegist":
                Register           = new wRegistration();
                MainWindow.Opacity = 0.6;
                Register.ShowDialog();
                break;

            case "dpKilepes":
                Message = new wMessage(1, 0);
                Globals.Main.Opacity = 0.6;
                Message.ShowDialog();
                break;
            }
        }