Beispiel #1
0
        void SteamAccounts()
        {
            List <SteamGetProfile.FullState> fullStates = SteamGetProfile.GetProfiles();

            Dispatcher.BeginInvoke(new ThreadStart(delegate
            {
                if (fullStates.Count() > 0)
                {
                    foreach (var d in fullStates)
                    {
                        DataAccounts.Items.Add(new SteamA()
                        {
                            personaname = d.name,
                            steamid     = d.id,
                            VACBanned   = d.ban ? "Yes" : "No"
                        });
                    }
                }
                else
                {
                    DataAccounts.Visibility     = Visibility.Hidden;
                    Label_NoAccounts.Visibility = Visibility.Visible;
                    // нет аккаунтов
                }
            }));
        }
Beispiel #2
0
        void SteamProfile()
        {
            var steam = SteamGetProfile.GetProfile(SteamProfiles.GetSteamID());

            if (steam == null)
            {
                Maked.Visibility = Visibility.Visible;
                return;
            }
            profile_steamid.Content = steam.id;
            profile_name.Content    = steam.name;
            profile_vac.Content     = steam.ban ? "VAC: YES" : "VAC NO";
            ImageBrush myBrush = new ImageBrush();

            myBrush.ImageSource = SteamGetImage(steam.url);
            newprofile_img.Fill = myBrush;
        }