Exemple #1
0
 /// <summary>
 /// Handles the <see cref="Control.Click"/> event of the quick startup button.
 /// </summary>
 /// <remarks>
 /// Confirms that the users wants to luanch the quick startup.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">An <see cref="EventArgs"/> describing the event arguments.</param>
 private void butQuickStartup_Click(object sender, EventArgs e)
 {
     foreach (GameModeListViewItemBase glvGameModeListView in gameModeListView1.Items)
     {
         GameModeSearchListViewItem gsvGameModeSearchItem = (GameModeSearchListViewItem)glvGameModeListView;
         gsvGameModeSearchItem.StopSearching();
     }
 }
Exemple #2
0
 /// <summary>
 /// Handles the <see cref="Control.Click"/> event of the stop searching button.
 /// </summary>
 /// <remarks>
 /// Confirms that the users wants to stop the game searching.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">An <see cref="EventArgs"/> describing the event arguments.</param>
 private void butStopSearching_Click(object sender, EventArgs e)
 {
     foreach (GameModeListViewItemBase glvGameModeListView in gameModeListView1.Items)
     {
         GameModeSearchListViewItem gsvGameModeSearchItem = (GameModeSearchListViewItem)glvGameModeListView;
         if (!gsvGameModeSearchItem.GamePathFound)
         {
             gsvGameModeSearchItem.StopSearching();
         }
     }
 }