Ejemplo n.º 1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CrazyParty;component/BinSrc/Pages/LiarDicePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.myAvatar = ((System.Windows.Controls.Image)(this.FindName("myAvatar")));
     this.myUserName = ((System.Windows.Controls.TextBlock)(this.FindName("myUserName")));
     this.myClockText = ((System.Windows.Controls.TextBlock)(this.FindName("myClockText")));
     this.myLiarText = ((System.Windows.Controls.TextBox)(this.FindName("myLiarText")));
     this.playGrid = ((System.Windows.Controls.Grid)(this.FindName("playGrid")));
     this.dice1 = ((CrazyParty.BinSrc.Dice)(this.FindName("dice1")));
     this.dice2 = ((CrazyParty.BinSrc.Dice)(this.FindName("dice2")));
     this.dice3 = ((CrazyParty.BinSrc.Dice)(this.FindName("dice3")));
     this.dice4 = ((CrazyParty.BinSrc.Dice)(this.FindName("dice4")));
     this.dice5 = ((CrazyParty.BinSrc.Dice)(this.FindName("dice5")));
     this.showResultGrid = ((System.Windows.Controls.Grid)(this.FindName("showResultGrid")));
     this.localListBox = ((System.Windows.Controls.ListBox)(this.FindName("localListBox")));
     this.oppListBox = ((System.Windows.Controls.ListBox)(this.FindName("oppListBox")));
     this.oppAvatar = ((System.Windows.Controls.Image)(this.FindName("oppAvatar")));
     this.oppUserName = ((System.Windows.Controls.TextBlock)(this.FindName("oppUserName")));
     this.oppClockText = ((System.Windows.Controls.TextBlock)(this.FindName("oppClockText")));
     this.oppLiarText = ((System.Windows.Controls.TextBox)(this.FindName("oppLiarText")));
     this.numberSelector = ((Controls.Primitives.DigitLoopingSelector)(this.FindName("numberSelector")));
     this.pointSelector = ((Controls.Primitives.DigitLoopingSelector)(this.FindName("pointSelector")));
     this.submitStateBtn = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("submitStateBtn")));
     this.prepareBtn = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("prepareBtn")));
     this.exitBtn = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("exitBtn")));
 }
Ejemplo n.º 2
0
        private static void ValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            DigitLoopingSelector picker = (DigitLoopingSelector)obj;

            picker.DataSource = new DigitDataSource(picker.MinValue, picker.MaxValue, picker.Step, picker.DefaultValue, picker.StringFormat);
        }