Exemple #1
0
        public GraphicalDisplay(Panel pGraphical)
        {
            this.pGraphical = pGraphical;
            this.gdFactory  = new GraphicalDisplayFactory(this);

            Arrival           = new List <string>();
            SwitchComplete    = new List <string>();
            QueueOther        = new List <string>();
            QueueCarStereo    = new List <string>();
            ResourceOther     = new List <string>();
            ResourceCarStereo = new List <string>();

            // Get indexes of the gbControls
            int gbArrivalIndex            = pGraphical.Controls.IndexOfKey("gbArrival");
            int gbSwitchIndex             = pGraphical.Controls.IndexOfKey("gbSwitch");
            int gbOtherQueueIndex         = pGraphical.Controls.IndexOfKey("gbOtherQueue");
            int gbCarStereoQueueIndex     = pGraphical.Controls.IndexOfKey("gbCarStereoQueue");
            int gbResourcesOtherIndex     = pGraphical.Controls.IndexOfKey("gbResourcesOther");
            int gbResourcesCarStereoIndex = pGraphical.Controls.IndexOfKey("gbResourcesCarStereo");
            int lTimeDisplayIndex         = pGraphical.Controls.IndexOfKey("lTimeDisplay");

            // Add the controls from pGraphics
            cArrival           = pGraphical.Controls[gbArrivalIndex];
            cSwitchComplete    = pGraphical.Controls[gbSwitchIndex];
            cQueueOther        = pGraphical.Controls[gbOtherQueueIndex];
            cQueueCarStereo    = pGraphical.Controls[gbCarStereoQueueIndex];
            cResourceOther     = pGraphical.Controls[gbResourcesOtherIndex];
            cResourceCarStereo = pGraphical.Controls[gbResourcesCarStereoIndex];
            cTimeDisplay       = pGraphical.Controls[lTimeDisplayIndex];
        }
Exemple #2
0
        public GraphicalDisplay(Panel pGraphical)
        {
            this.pGraphical = pGraphical;
            this.gdFactory = new GraphicalDisplayFactory(this);

            Arrival = new List<string>();
            SwitchComplete = new List<string>();
            QueueOther = new List<string>();
            QueueCarStereo = new List<string>();
            ResourceOther = new List<string>();
            ResourceCarStereo = new List<string>();

            // Get indexes of the gbControls
            int gbArrivalIndex = pGraphical.Controls.IndexOfKey("gbArrival");
            int gbSwitchIndex = pGraphical.Controls.IndexOfKey("gbSwitch");
            int gbOtherQueueIndex = pGraphical.Controls.IndexOfKey("gbOtherQueue");
            int gbCarStereoQueueIndex = pGraphical.Controls.IndexOfKey("gbCarStereoQueue");
            int gbResourcesOtherIndex = pGraphical.Controls.IndexOfKey("gbResourcesOther");
            int gbResourcesCarStereoIndex = pGraphical.Controls.IndexOfKey("gbResourcesCarStereo");
            int lTimeDisplayIndex = pGraphical.Controls.IndexOfKey("lTimeDisplay");

            // Add the controls from pGraphics
            cArrival = pGraphical.Controls[gbArrivalIndex];
            cSwitchComplete = pGraphical.Controls[gbSwitchIndex];
            cQueueOther = pGraphical.Controls[gbOtherQueueIndex];
            cQueueCarStereo = pGraphical.Controls[gbCarStereoQueueIndex];
            cResourceOther = pGraphical.Controls[gbResourcesOtherIndex];
            cResourceCarStereo = pGraphical.Controls[gbResourcesCarStereoIndex];
            cTimeDisplay = pGraphical.Controls[lTimeDisplayIndex];
        }