, Visual C#


- 9


// :

// TextBox :

if (textBox1.Text == "")

{

if (comboBox1.SelectedIndex == 0)

{

mySpeech =

", , , " +

" .";

myGenie.Speak(mySpeech, myObject);

}

if (comboBox1.SelectedIndex == 1)

{

mySpeech =

", , , " +

" .";

myMerlin.Speak(mySpeech, myObject);

}

if (comboBox1.SelectedIndex == 2)

{

mySpeech =

", , , " +

" .";

myPeedy.Speak(mySpeech, myObject);

}

if (comboBox1.SelectedIndex == 3)

{

mySpeech =

", , , " +

" .";

myRobby.Speak(mySpeech, myObject);

}

}

else

//, TextBox ,

// TextBox:

{

mySpeech = textBox1.Text;

if (comboBox1.SelectedIndex == 0)

myGenie.Speak(mySpeech, myObject);

if (comboBox1.SelectedIndex == 1)

myMerlin.Speak(mySpeech, myObject);

if (comboBox1.SelectedIndex == 2)

myPeedy.Speak(mySpeech, myObject);

if (comboBox1.SelectedIndex == 3)

myRobby.Speak(mySpeech, myObject);

}

}

: -: Hide (), ; (Genie, Merlin, Peedy, Robby), ; , , MoveToMouse, .