Mój problem jest następujący nie działa if i else if dla konkretnych liczb chce zrobić zależność dla liczb mniejszych niż 10 i większych niż 9 ale chyba jakiś błąd zrobiłem bo działa mi tylko 1 if a 2 tak jak by nie był wykrywany przez program
private void button10_Click_1(object sender, EventArgs e)
{
if (textBox23.Text == "" || Int32.Parse(textBox23.Text) > 9)
{
double L1 = double.Parse(textBox13.Text);
double L2 = double.Parse(textBox16.Text);
//double L3 = double.Parse(textBox7.Text);
double wynik = L1 - L2;
textBox23.Text = wynik.ToString();
string str = null;
string retString = null;
str = textBox23.Text;
retString = str.Substring(0, 1);
//MessageBox.Show(retString);
textBox21.Text = retString;
str = textBox23.Text;
retString = str.Substring(1, 1);
//MessageBox.Show(retString);
textBox22.Text = retString;
}
else if (textBox23.Text == "" || Int32.Parse(textBox23.Text) < 10)
{
double L1 = double.Parse(textBox13.Text);
double L2 = double.Parse(textBox16.Text);
//double L3 = double.Parse(textBox7.Text);
double wynik = L1 - L2;
textBox23.Text = wynik.ToString();
string str = null;
string retString = null;
str = textBox23.Text;
retString = str.Substring(0, 1);
//MessageBox.Show(retString);
textBox21.Text = retString;
}
Proszę o pomoc
Pozdrawiam
Mungo