예제 #1
0
        private void OddsBtn_Click(object sender, EventArgs e)
        {
            List <int> nums = new List <int>();

            foreach (Pair <int, int> pair in this.fDice)
            {
                nums.Add(pair.First);
            }
            OddsForm oddsForm = new OddsForm(nums, this.fConstant, this.ExpressionBox.Text);

            oddsForm.ShowDialog();
        }
예제 #2
0
        private void OddsBtn_Click(object sender, EventArgs e)
        {
            List <int> sides = new List <int>();

            foreach (Pair <int, int> die in fDice)
            {
                sides.Add(die.First);
            }

            OddsForm dlg = new OddsForm(sides, fConstant, ExpressionBox.Text);

            dlg.ShowDialog();
        }