Ejemplo n.º 1
0
        public void SetVolumeCommandPanelParams2(AbsoluteResourceLocation SourceVial, AbsoluteResourceLocation DestinationVial,
                                                 VolumeType VolumeTypeSpecifier, double RelativeVolumeProportion, int AbsoluteVolume_uL)
        {
            this.SourceVial2          = SourceVial;
            this.DestinationVial2     = DestinationVial;
            this.VolumeTypeSpecifier2 = VolumeTypeSpecifier;


            this.RelativeVolumeProportion2 = RelativeVolumeProportion;
            this.AbsoluteVolume_uL2        = AbsoluteVolume_uL;
        }
        private AbsoluteResourceLocation GetLocation(int quadrant, int vial)
        {
            //0 is vial B Square, Cocktail Vial, TPC0X03
            //1 is vial C Circle, Antibody Vial, TPC0X05
            //2 is vial A Triangle, Magnetic Particle Vial, TPC0X04

            AbsoluteResourceLocation[,] array = new AbsoluteResourceLocation[, ]
            {
                { AbsoluteResourceLocation.TPC0103, AbsoluteResourceLocation.TPC0105, AbsoluteResourceLocation.TPC0104 },
                { AbsoluteResourceLocation.TPC0203, AbsoluteResourceLocation.TPC0205, AbsoluteResourceLocation.TPC0204 },
                { AbsoluteResourceLocation.TPC0303, AbsoluteResourceLocation.TPC0305, AbsoluteResourceLocation.TPC0304 },
                { AbsoluteResourceLocation.TPC0403, AbsoluteResourceLocation.TPC0405, AbsoluteResourceLocation.TPC0404 }
            };

            return(array[quadrant, vial]);
        }
        protected static bool isSmallVial(AbsoluteResourceLocation vial)
        {
            string s = vial.ToString();

            return(s.EndsWith("03") || s.EndsWith("04") || s.EndsWith("05"));
        }