private void GameEndMenu(string score)
        {//játék vége menü
            Log.Message("Játék vége létrehozva.");
            gvm = null;
            g.Children.Clear();
            gevm = new GameEndViewModel(score); //a pontok átadása

            //socres txt
            Label scores = new Label();

            scores.Height = 500;
            scores.Width  = 1050;
            scores.HorizontalAlignment = HorizontalAlignment.Left;
            scores.VerticalAlignment   = VerticalAlignment.Top;
            scores.SetBinding(Label.ContentProperty, new Binding("Score"));
            scores.Foreground = Brushes.White;
            scores.Margin     = new Thickness(0, 0, 0, 0);
            scores.FontSize   = 15;
            //kiképés btn
            Button exit = new Button();

            exit.Height   = 50;
            exit.Margin   = new Thickness(0, 400, 0, 0);
            exit.Width    = 100;
            exit.FontSize = 20;
            exit.Content  = "Kilépés";
            exit.Click   += Exit_Click;

            g.Children.Add(exit);
            g.Children.Add(scores);

            DataContext = gevm;
        }
        /*private void Timer_Tick(object sender, EventArgs e)
         * {
         *  bool called = false;
         *  if (DateTime.Now.Second==0 && !called)
         *  {
         *      CallSecondTick(DateTime.Now.Minute);
         *      called = true;
         *  }//ha gyorsabb a tick mint 1 mp akkor többször is meg hívódna mint kell
         *  if (called && DateTime.Now.Second == 10)
         *  {
         *      called = false;
         *  }
         * }*/

        private void CreateMainMenu()
        {
            Log.Message("Menü létrehozva.");
            gm      = null;
            ovm     = null;
            gevm    = null;
            spvm    = null;
            mpvm    = null;
            mmvm    = null;
            players = null;
            players = new List <Gamer>();
            mmvm    = new MainMenuViewModel();
            g.Children.Clear();
            //play gomb
            Button play = new Button();

            play.Margin   = new Thickness(0, -250, 0, 0);
            play.Height   = 50;
            play.Width    = 200;
            play.FontSize = 20;
            play.Content  = "Játék";
            play.Click   += Play_Click;
            //exit gomb
            Button exit = new Button();

            exit.Height   = 50;
            exit.Margin   = new Thickness(0, 100, 0, 0);
            exit.Width    = 200;
            exit.FontSize = 20;
            exit.Content  = "Kilépés";
            exit.Click   += Exit_Click;
            //options
            Button options = new Button();

            options.Height   = 50;
            options.Margin   = new Thickness(0, -10, 0, 0);
            options.Width    = 200;
            options.FontSize = 20;
            options.Content  = "Beállítások";
            options.Click   += Options_Click;
            //gamemode
            Label gml = new Label();

            gml.Height   = 30;
            gml.Width    = 100;
            gml.Content  = "Játékmód";
            gml.Margin   = new Thickness(0, -160, 0, 0);
            gml.FontSize = 15;
            //játékmód
            ComboBox cb = new ComboBox();

            cb.Height      = 30;
            cb.Width       = 200;
            cb.Margin      = new Thickness(0, -100, 0, 0);
            cb.BorderBrush = Brushes.Black;
            cb.FontSize    = 15;
            cb.SetBinding(ComboBox.SelectedItemProperty, new Binding("SelectedGamemode"));
            cb.SetBinding(ComboBox.ItemsSourceProperty, new Binding("GameModeList"));

            g.Children.Add(cb);
            g.Children.Add(gml);
            g.Children.Add(options);
            g.Children.Add(play);
            g.Children.Add(exit);

            DataContext = mmvm;
        }