Пример #1
0
        private void UpdateCheckSync(SynchroHandle _handle, ComboBox _comboBox, CheckBox _checkBox)
        {
            if (_handle.Compression == SynchroManager.ComprLevel.Undefined)
            {
                _handle.Compression = SynchroManager.ComprLevel.Original;
            }

            _comboBox.SelectedIndex = SynchroManager.ComprToInt(TripSummaryRef.SyncUsb.Compression);
            _comboBox.Visibility    = (Boolean)_checkBox.IsChecked ? Visibility.Visible : Visibility.Collapsed;

            if ((TripRef.Sample) || !(PageRef is ViewHome))
            {
                _comboBox.IsEnabled = false;
                _checkBox.IsEnabled = false;
            }
        }