예제 #1
0
 public void LB_Select(int i)
 {
     mnfUzivatel = new MnfUzivatel();
     //TODO disconnect logged user!
     UserLogIn(Uzivatele[i]);
     UzivateleSelected = i;
 }
예제 #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;
 }