Ejemplo n.º 1
0
        public void LoadingCookie()
        {
            if (settingfrm.Visible == false)
            {
                settingfrm.Show();

                SteamAuto.UserName = settingfrm.comboBox1.SelectedItem.ToString();

                settingfrm.Hide();
            }
            else
            {
                SteamAuto.UserName = settingfrm.comboBox1.SelectedItem.ToString();
            }

            var cook = new CookieContainer();

            if (!SteamAuto.UserName.Equals("New Account"))
            {
                cook = (CookieContainer)SteamLibrary.LoadBinary(SteamAuto.UserName + ".dat");
                if (cook == null)
                {
                    cook = new CookieContainer();
                }
            }

            SteamAuto.cookieCont = cook;
        }