public static Color GetStatusColor( Friend steamid ) { Color inGame = Color.FromArgb( 177, 251, 80 ); Color online = Color.FromArgb( 111, 189, 255 ); Color offline = Color.FromArgb( 137, 137, 137 ); if ( steamid.IsInGame() ) return inGame; if ( !steamid.IsOnline() ) return offline; return online; }
Bitmap GetHolder(Friend steamid) { if (steamid.IsInGame()) { return(Resources.IconIngame); } if (steamid.IsOnline()) { return(Resources.IconOnline); } return(Resources.IconOffline); }
public static Color GetStatusColor(Friend steamid) { Color inGame = Color.FromArgb(177, 251, 80); Color online = Color.FromArgb(111, 189, 255); Color offline = Color.FromArgb(137, 137, 137); if (steamid.IsInGame()) { return(inGame); } if (!steamid.IsOnline()) { return(offline); } return(online); }
Bitmap GetHolder( Friend steamid ) { if ( steamid.IsInGame() ) return Resources.IconIngame; if ( steamid.IsOnline() ) return Resources.IconOnline; return Resources.IconOffline; }