Example #1
0
 public void LB_Select(int i)
 {
     mnfUzivatel = new MnfUzivatel();
     //TODO disconnect logged user!
     UserLogIn(Uzivatele[i]);
     UzivateleSelected = i;
 }
Example #2
0
 private void LB_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     //MnfGame.Close();
     if (LB.SelectedIndex < 0)
     {
         return;
     }
     mnfUzivatel = new MnfUzivatel();
     //TODO disconnect logged user!
     UserLogIn(Uzivatele[LB.SelectedIndex]);
     UzivateleSelected = LB.SelectedIndex;
 }