public ScoresPage() { InitializeComponent(); this.Loaded += new RoutedEventHandler(ScoresPage_Loaded); puzzleAdapter = (Application.Current as mPuzzle.App).puzzleAdapter; restService = new RestService(); }
public SettingsPage() { InitializeComponent(); restService = new RestService(); puzzleAdapter = (Application.Current as mPuzzle.App).puzzleAdapter; Loaded += new RoutedEventHandler(SettingsPage_Loaded); nicknameDialog.username.KeyDown += new KeyEventHandler(username_KeyDown); nicknameDialog.buttonOk.Click += onNicknameOk; nicknameDialog.buttonCancel.Click += onNicknameCancel; }
public GameLandscapePage() { InitializeComponent(); dtimer = new DispatcherTimer(); dtimer.Interval = new TimeSpan(0, 0, 0, 0, 600); dtimer.Tick += new EventHandler(uploadingOnTimer); restService = new RestService(); nicknameDialog = new NicknameDialog(); nicknameDialog.username.KeyDown += new KeyEventHandler(username_KeyDown); nicknameDialog.buttonOk.Click += onNicknameOk; nicknameDialog.buttonCancel.Click += onNicknameCancel; nicknameDialog.Visibility = Visibility.Collapsed; }
public GamePortraitPage() { InitializeComponent(); puzzleAdapter = (Application.Current as mPuzzle.App).puzzleAdapter; dtimer = new DispatcherTimer(); dtimer.Tick += new EventHandler(uploadingOnTimer); dtimer.Interval = new TimeSpan(0, 0, 0, 0, 600); restService = new RestService(); nicknameDialog = new NicknameDialog(); nicknameDialog.username.KeyDown += new KeyEventHandler(username_KeyDown); nicknameDialog.buttonOk.Click += onNicknameOk; nicknameDialog.buttonCancel.Click += onNicknameCancel; nicknameDialog.Visibility = Visibility.Collapsed; }