I am trying to write a switch statement that would type the search term in the search field depending on whichever search textbox is present. I have the following code. But
In the end of each switch case just add the break statement to resolve this problem like this-
switch (manu)
{
case manufacturers.Nokia:
_phanefact = new NokiaFactory();
break;
case manufacturers.Samsung:
_phanefact = new SamsungFactory();
break;
}