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