[cf67b8]: wMenu.xaml.cs  Maximize  Restore  History

Download this file

26 lines (19 with data), 683 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Windows;
namespace YuGiOh_Ultra {
public partial class wMenu : Window {
private wDeckManager _wdm;
public wMenu() { InitializeComponent(); }
private void BtDeckMn_Click( object sender, RoutedEventArgs e ) {
if ( _wdm == null || !_wdm.IsLoaded ) {
_wdm = new wDeckManager();
_wdm.Show();
}
}
private void BtPlay_Click( object sender, RoutedEventArgs e ) {
if( _wdm != null && _wdm.IsLoaded ) _wdm.Close(); //you can't edit deck in battle!
Com.me.InitBattle();
new wBattle().Show();
this.Close();
}
}
}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks