Enabled amp; amp; comboBoxMatherial. Text!=«», Color=comboBoxColor. Enabled amp; amp; comboBoxColor. Text!=«», Name=comboBoxNameItem. Enabled amp; amp; comboBoxNameItem. Text!=«»; (ID || Name || Matherial || Color)
{+=«where»; (ID) query +=«ID =» + comboBoxID. Text + «and»; (Name) query +=«Name =» + comboBoxNameItem. Text + «and»; (Matherial) query +=«Matherial =» + comboBoxMatherial. Text + «and»; (Color) query +=«Color =» + comboBoxColor. Text + «and»;=query. Substring (0, query. Length - 5);
} +=»;»; GetTable (query);
}
void comboBoxID_Click (object sender, EventArgs e)
{. Items. Clear (); dt=new DataTable ();=GetTable (@ «select ID from BD;»); (int i=0; i lt; dt. Rows. Count; ++ i)
{. Items. Add (dt. Rows [i] [0]);
}
}
void comboBoxNameItem_Click (object sender, EventArgs e)
{. Items. Clear (); dt=DT (); [] str=new string [dt. Rows. Count]; (int i=0; i lt; dt. Rows. Count; ++ i)
{[i]=(string) dt. Rows [i] [«Name»];
}
}
void comboBoxColor_Click (object sender, EventArgs e)
{. Items. Clear (); dt=new DataTable ();=GetTable (@ «select Name» + ((checkBoxID. Enabled)? «»: «Where ID =» + comboBoxID. Text) + «from BD;»); (int i=0; i lt; dt. Rows. Count; ++ i)
{. Items. Add (dt. Rows [i] [0]);
}
}
void label11_Click (object sender, EventArgs e)
{
}
void comboBox1_SelectedIndexChanged (object sender, EventArgs e)
{
}
}
}