private void btnWritePowerUpTiming_Click(object sender, RoutedEventArgs e)
        {
            Screen screen = (Screen)cmbxScreenList.SelectedItem;

            PowerUpTiming timing = new PowerUpTiming();

            timing.StartToS1 = byte.Parse(((ListBoxItem)cmbxPowerUpTimingStToS1.SelectedItem).Uid);
            timing.S1ToS2    = byte.Parse(((ListBoxItem)cmbxPowerUpTimingS1ToS2.SelectedItem).Uid);
            timing.S2ToS3    = byte.Parse(((ListBoxItem)cmbxPowerUpTimingS2ToS3.SelectedItem).Uid);
            timing.S3ToS4    = byte.Parse(((ListBoxItem)cmbxPowerUpTimingS3ToS4.SelectedItem).Uid);

            screen.PowerUpTiming = timing;
        }
        private void btnReadPowerUpTiming_Click(object sender, RoutedEventArgs e)
        {
            Screen screen = (Screen)cmbxScreenList.SelectedItem;

            PowerUpTiming timing = screen.PowerUpTiming;

            foreach (ListBoxItem item in cmbxPowerUpTimingStToS1.Items)
            {
                if (item.Uid == ((byte)timing.StartToS1).ToString())
                {
                    cmbxPowerUpTimingStToS1.SelectedItem = item;
                }
            }

            foreach (ListBoxItem item in cmbxPowerUpTimingS1ToS2.Items)
            {
                if (item.Uid == ((byte)timing.S1ToS2).ToString())
                {
                    cmbxPowerUpTimingS1ToS2.SelectedItem = item;
                }
            }

            foreach (ListBoxItem item in cmbxPowerUpTimingS2ToS3.Items)
            {
                if (item.Uid == ((byte)timing.S2ToS3).ToString())
                {
                    cmbxPowerUpTimingS2ToS3.SelectedItem = item;
                }
            }

            foreach (ListBoxItem item in cmbxPowerUpTimingS3ToS4.Items)
            {
                if (item.Uid == ((byte)timing.S3ToS4).ToString())
                {
                    cmbxPowerUpTimingS3ToS4.SelectedItem = item;
                }
            }
        }