Example #1
0
 private void buttonNumber_Click(object sender, EventArgs e)
 {
     textBox1.AppendText("人は" + CHito.getCount() + "人\r\n");
     textBox1.AppendText("鳥は" + CHito.getCount() + "羽\r\n");
     textBox1.AppendText("魚は" + CHito.getCount() + "匹\r\n");
     textBox1.AppendText("生き物は" + CHito.getCount() + "体\r\n");
 }
Example #2
0
        private void buttonNumber_Click(object sender, EventArgs e)
        {
            //選択されているインデックスを所得
            int index = int.Parse(txtIndex.Text);

            //人数を表示
            textBox1.AppendText("人は" + CHito.getCount() + "人\r\n");
        }
Example #3
0
        private void buttonNumber_Click(object sender, EventArgs e)
        {
            int index = int.Parse(txtIndex.Text);

            textBox1.AppendText("人は" + CHito.getCount() + "人\r\n");
            textBox1.AppendText("鳥は" + CTori.getCount() + "羽\r\n");
            textBox1.AppendText("魚は" + CSakana.getCount() + "匹\r\n");
            textBox1.AppendText("生き物は" + CIkimono.getIkimonoCount() + "体\r\n");
        }