Exemplo n.º 1
0
 private void buttonNumber_Click(object sender, EventArgs e)
 {
     textBox1.AppendText("人は" + CHito.getCount() + "人\r\n");
     textBox1.AppendText("鳥は" + iToriCount + "羽\r\n");
     textBox1.AppendText("魚は" + iSakanaCount + "匹\r\n");
     textBox1.AppendText("生き物は" + iIkimonoCount + "体。\r\n");
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     hitoObjects = new CHito[HITO_NAMES.Length];
     for (int i = 0; i < HITO_NAMES.Length; i++)
     {
         hitoObjects[i] = new CHito(HITO_NAMES[i]);
         textBox1.AppendText("" + i + ":" + HITO_NAMES[i] + "\r\n");
     }
 }