private void SrediFavorite() { if (flpFavorites.Controls.Count >= FAVORITE_NUM) { MessageBox.Show($"{Properties.Resources.FavoriteWarning}"); } else { _odabraniPS.Favorite = true; _odabraniPS.StarOnOFF(); Favorite(); } }
public void OnFavoriziranje(object sender, EventArgs e) { PlayerShort ps = sender as PlayerShort; _odabraniPS = ps; if (_odabraniPS.Favorite == false) { _odabraniPS.Favorite = false; _odabraniPS.StarOnOFF(); flpTeam.Controls.Add(_odabraniPS); flpFavorites.Controls.Remove(_odabraniPS); Favorite(); } else { SrediFavorite(); } }