Example #1
0
        public PatchPanel(PatchBox box)
        {
            panelType = "PatchPanel";
            panelNum  = ++panelCount;
            patchbox  = box;

            updateFrame(20, patchbox.frame.Width);

            connectors = new List <PatchLine>();
            connType   = CONNECTIONTYPE.NEITHER;
        }
        //--------------------------------------------------------------------------
        // Construction
        //--------------------------------------------------------------------------

        public KnownNXT(CONNECTIONTYPE connectionType, string sConnectionParameter, string nxtName=null, bool? hasNXTConnected = null)
            {
            this.ConnectionType       = connectionType;
            this.sConnectionParameter = sConnectionParameter;
            this.NxtName              = nxtName;
            this.HasNXTConnected      = hasNXTConnected;
            }