Exemplo n.º 1
0
 /// <summary>
 /// Handles the Click event of the addToolStripMenuItem control
 /// by showing the <see cref="addRecentGameForm"/> form.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (addRecentGameForm.IsDisposed)
     {
         addRecentGameForm = new AddRecentGameForm(this);
     }
     addRecentGameForm.Show();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FriendSearchForm"/> class.
        /// </summary>
        public FriendSearchForm()
        {
            addRecentGameForm = new AddRecentGameForm(this);
            if (Program.SteamApiKey != "")
            {
                webInterfaceFactory = new SteamWebInterfaceFactory(Program.SteamApiKey);
                steamInterface      = webInterfaceFactory.CreateSteamWebInterface <SteamUser>(new HttpClient());
                playerService       = webInterfaceFactory.CreateSteamWebInterface <PlayerService>(new HttpClient());
            }

            InitializeComponent();
        }