private void Options_Click(object sender, RoutedEventArgs e)
        {
            Log.Message("Options létrehozva.");
            g.Children.Clear();
            ovm = new OptionsViewMenu();
            //seed felirat
            Label seed = new Label();

            seed.Content  = "Seed: ";
            seed.Height   = 40;
            seed.Width    = 100;
            seed.Margin   = new Thickness(0, 0, 0, 0);
            seed.FontSize = 20;
            //seed box
            TextBox seedbox = new TextBox();

            seedbox.SetBinding(TextBox.TextProperty, new Binding("Seed"));
            seedbox.Height          = 40;
            seedbox.Width           = 500;
            seedbox.Margin          = new Thickness(0, 70, 0, 0);
            seedbox.FontSize        = 20;
            seedbox.PreviewKeyDown += Seedbox_PreviewKeyDown; //csak szám mehet bele
            //vissza gomb
            Button back = new Button();

            back.Height   = 50;
            back.Margin   = new Thickness(0, 200, 0, 0);
            back.Width    = 150;
            back.FontSize = 20;
            back.Content  = "Vissza";
            back.Click   += Back_Click;

            g.Children.Add(back);
            g.Children.Add(seedbox);
            g.Children.Add(seed);

            DataContext = ovm;
        }
        /*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;
        }