Ejemplo n.º 1
0
        public static void SetTrace(SourceLevels level, TraceOptions options)
        {
            if (_Listener == null)
            {
                _Listener = new BindingErrorTraceListener();
                PresentationTraceSources.DataBindingSource.Listeners.Add(_Listener);
            }

            _Listener.TraceOutputOptions = options;
            PresentationTraceSources.DataBindingSource.Switch.Level = level;
        }
Ejemplo n.º 2
0
        public static void CloseTrace()
        {
            if (_Listener == null)
            {
                return;
            }

            _Listener.Flush();
            _Listener.Close();
            PresentationTraceSources.DataBindingSource.Listeners.Remove(_Listener);
            _Listener = null;
        }
Ejemplo n.º 3
0
        public CtrlWindow()
        {
            BindingErrorTraceListener.SetTrace();
            InitializeComponent();

            // create a model object
            _event = new EventModel()
            {
                SelectedJack = new AudioLine {
                    DeviceName = "-- Not Implemented -- ", LevelLeft = 0, LevelRight = 0, EmptyStr = "-", Fill = new SolidColorBrush()
                },
                _AudioDeviceCollection = new ObservableCollection <AudioLine>(),
                AudioBitrate           = 0,
                AudioChannel           = 'U',
                IsNotAutoBitrate       = true,
                IsNotAutoChannel       = true,
            };

            this.DataContext = _event;
        }