Exemplo n.º 1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mPuzzle;component/SettingsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.username = ((System.Windows.Controls.TextBlock)(this.FindName("username")));
     this.buttonChangeUsername = ((System.Windows.Controls.Button)(this.FindName("buttonChangeUsername")));
     this.header = ((System.Windows.Controls.Image)(this.FindName("header")));
     this.nicknameDialog = ((mPuzzle.NicknameDialog)(this.FindName("nicknameDialog")));
 }
Exemplo n.º 2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mPuzzle;component/ScoresPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.puzzlesListBox = ((System.Windows.Controls.ListBox)(this.FindName("puzzlesListBox")));
     this.header = ((System.Windows.Controls.Image)(this.FindName("header")));
     this.buttonSyncAll = ((System.Windows.Controls.Button)(this.FindName("buttonSyncAll")));
     this.nicknameDialog = ((mPuzzle.NicknameDialog)(this.FindName("nicknameDialog")));
     this.syncErrorDialog = ((mPuzzle.SyncErrorDialog)(this.FindName("syncErrorDialog")));
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mPuzzle;component/SettingsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.username             = ((System.Windows.Controls.TextBlock)(this.FindName("username")));
     this.buttonChangeUsername = ((System.Windows.Controls.Button)(this.FindName("buttonChangeUsername")));
     this.header         = ((System.Windows.Controls.Image)(this.FindName("header")));
     this.nicknameDialog = ((mPuzzle.NicknameDialog)(this.FindName("nicknameDialog")));
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mPuzzle;component/ScoresPage.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.puzzlesListBox  = ((System.Windows.Controls.ListBox)(this.FindName("puzzlesListBox")));
     this.header          = ((System.Windows.Controls.Image)(this.FindName("header")));
     this.buttonSyncAll   = ((System.Windows.Controls.Button)(this.FindName("buttonSyncAll")));
     this.nicknameDialog  = ((mPuzzle.NicknameDialog)(this.FindName("nicknameDialog")));
     this.syncErrorDialog = ((mPuzzle.SyncErrorDialog)(this.FindName("syncErrorDialog")));
 }