Example #1
0
        private void spielerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;
            int plyr = Convert.ToInt32(item.Name.Substring(7, 1));

            if (plyr < 0 && plyr > 2)
            {
                return;
            }

            using (HowMuchForm hmf = new HowMuchForm())
            {
                hmf.ShowDialog();
                if (hmf.Result)
                {
                    this.updateScore(plyr, hmf.Score);
                }
            }
        }
Example #2
0
        private void spielerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;
            int plyr = Convert.ToInt32(item.Name.Substring(7, 1));
            if (plyr < 0 && plyr > 2)
            {
                return;
            }

            using (HowMuchForm hmf = new HowMuchForm())
            {
                hmf.ShowDialog();
                if (hmf.Result)
                {
                    this.updateScore(plyr, hmf.Score);
                }
            }
        }