예제 #1
0
 /// <summary>
 /// Aktivuje avatar a nacte servery
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LBA_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     if (LBA.SelectedIndex < 0)
     {
         return;
     }
     mnfAvatar = new MnfAvatar(Avatars[LBA.SelectedIndex]);
     Console.WriteLine("Selected avatar " + mnfAvatar.JmenoPostavy);
     AvatarsSelected = LBA.SelectedIndex;
     if (VyberAvatara())
     {
         NactiServery();
     }
     else
     {
         Servers.Clear();
     }
 }
예제 #2
0
 public void LBA_Select(int i)
 {
     if (i < 0)
     {
         return;
     }
     mnfAvatar = new MnfAvatar(Avatars[i]);
     Console.WriteLine("Selected avatar " + mnfAvatar.JmenoPostavy);
     AvatarsSelected = i;
     if (VyberAvatara())
     {
         NactiServery();
     }
     else
     {
         Servers.Clear();
     }
 }
예제 #3
0
 public void Init(MnfAvatar ma)
 {
     DataContext = ma;
     MA          = ma;
 }