private void ComboSSLineList_SelectedIndexChanged(object sender, EventArgs e) { short OffSSLine; string SSLineCode = ""; // waitForm.Show { var withBlock = ComboSSLineList; if (withBlock.SelectedIndex == 0) { ContainerList2.TakeContainerList(PopulateContainerInventory("ALL")); } else { OffSSLine = (short)(ComboSSLineList.SelectedIndex * 50 - 49); SSLineCode = Strings.Mid(AllSSLines, OffSSLine, 10); ContainerList2.TakeContainerList(PopulateContainerInventory(SSLineCode)); } ContainerList2.Select(); } // FrmParentScreen.HideLoadForm() }