Exemple #1
0
        void SetDieText()
        {
            TextView t;

            t      = FindViewById <TextView>(Resource.Id.d4Text);
            t.Text = _DieRoll.DieCount(4) + "d4";
            t      = FindViewById <TextView>(Resource.Id.d6Text);
            t.Text = _DieRoll.DieCount(6) + "d6";
            t      = FindViewById <TextView>(Resource.Id.d8Text);
            t.Text = _DieRoll.DieCount(8) + "d8";
            t      = FindViewById <TextView>(Resource.Id.d10Text);
            t.Text = _DieRoll.DieCount(10) + "d10";
            t      = FindViewById <TextView>(Resource.Id.d12Text);
            t.Text = _DieRoll.DieCount(12) + "d12";
            t      = FindViewById <TextView>(Resource.Id.d20Text);
            t.Text = _DieRoll.DieCount(20) + "d20";
        }