forked from octgn/OCTGN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More visuals for combined play windows.
- Loading branch information
1 parent
e8a5842
commit 92b3bfe
Showing
3 changed files
with
92 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Collections.Generic; | ||
using System.Reflection; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using log4net; | ||
|
||
namespace Octgn.Tabs.Matchmaking | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ChooseGameType.xaml | ||
/// </summary> | ||
public partial class ChooseGameType : UserControl | ||
public partial class ChooseGameType | ||
{ | ||
internal static ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
public List<GameType> GameTypeList { get; set; } | ||
|
||
public ChooseGameType() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void OnGameTypeMouseUp(object sender, MouseButtonEventArgs e) | ||
{ | ||
Log.Info("Clicked on game type"); | ||
var fe = sender as FrameworkElement; | ||
if (fe == null) | ||
return; | ||
var gameType = fe.DataContext as GameType; | ||
if (gameType == null) | ||
return; | ||
var vm = DataContext as MatchmakingTabViewModel; | ||
vm.PickGameType(gameType); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters