public void SetupListBox() { //TUBE NAMES SYNC lbDefaultNames.Items.Clear(); //general items lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer)); if (SeparatorResourceManager.isPlatformRS16()) { lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer34)); lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer56)); } lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.WasteTube)); lbDefaultNames.Items.Add(SeparatorResourceManager.getLysisStringFromProtocolClass(protocolClass)); lbDefaultNames.Items.Add(SeparatorResourceManager.getVialBStringFromProtocolClass(protocolClass)); lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.VialA)); lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.VialC)); lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.SampleTube)); lbDefaultNames.Items.Add(SeparatorResourceManager.GetSeparatorString(StringId.SeparationTube)); lbDefaultNames.SelectedIndex = 0; this.SetupCustomListBox(); }
// set the default vial names as custom names - vial names vary with the type of protocol public void SetDefaultCustomNames() { customVialNames = new customNames(); customVialNames.bufferBottle = SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer); customVialNames.wasteTube = SeparatorResourceManager.GetSeparatorString(StringId.WasteTube); customVialNames.magneticParticleVial = SeparatorResourceManager.GetSeparatorString(StringId.VialA); customVialNames.antibodyCocktailVial = SeparatorResourceManager.GetSeparatorString(StringId.VialC); customVialNames.sampleTube = SeparatorResourceManager.GetSeparatorString(StringId.SampleTube); customVialNames.separationTube = SeparatorResourceManager.GetSeparatorString(StringId.SeparationTube); customVialNames.bufferBottle34 = SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer34); customVialNames.bufferBottle56 = SeparatorResourceManager.GetSeparatorString(StringId.QuadrantBuffer56); customVialNames.lysisBufferTube = SeparatorResourceManager.getLysisStringFromProtocolClass(protocolClass); customVialNames.selectionCocktailVial = SeparatorResourceManager.getVialBStringFromProtocolClass(protocolClass); }