示例#1
0
            private void BotOnOnSteamGuardRequired(object sender, SteamGuardRequiredEventArgs barf)
            {
                var bot          = sender as Bot;
                var window       = new SteamGuardForm(bot.DisplayName);
                var dialogResult = window.ShowDialog();

                if (dialogResult == DialogResult.OK)
                {
                    barf.SteamGuard = window.UserEnteredCode;
                }
            }
示例#2
0
            private void BotOnOnSteamGuardRequired(object sender, SteamGuardRequiredEventArgs barf)
            {
                var bot = sender as Bot;
                var window = new SteamGuardForm(bot.DisplayName);
                var dialogResult = window.ShowDialog();

                if (dialogResult == DialogResult.OK)
                {
                    barf.SteamGuard = window.UserEnteredCode;
                }
            }