private void btn_Sterge_Jucator(object sender, RoutedEventArgs e)
 {
     if (list_users.SelectedItem != null)
     {
         MainWindowUtils.StergeJucator(list_users.SelectedItem.ToString());
         list_users.Items.Refresh();
     }
 }
        public MainWindow()
        {
            InitializeComponent();

            if (!MainWindowUtils.Initializat)
            {
                MainWindowUtils.Initializare();
            }

            list_users.ItemsSource = MainWindowUtils.Jucatori.Keys;
        }
        private void btn_IncepeJoc(object sender, RoutedEventArgs e)
        {
            if (list_users.SelectedItem != null)
            {
                JocUtils.User = MainWindowUtils.Jucatori[list_users.SelectedItem.ToString()];

                Window gameWindow = new GameWindow();
                gameWindow.Show();

                Close();
            }

            MainWindowUtils.executeStopManea();
        }
 private void btn_Adauga_Manelar(object sender, RoutedEventArgs e)
 {
     MainWindowUtils.AdaugaJucator(txtBox_name.Text);
     inchideFereastra();
 }
 private void btn_Afara_Din_Ghencea(object sender, RoutedEventArgs e)
 {
     MainWindowUtils.SalveazaJucatorii();
     Close();
 }
 private void btn_Start_Manea(object sender, RoutedEventArgs e)
 {
     MainWindowUtils.executeStartManea();
 }
 private void btn_Opreste_Manea(object sender, RoutedEventArgs e)
 {
     MainWindowUtils.executeStopManea();
 }