Пример #1
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        ///
        public MainViewModel(VideoSourcePlayer2 player)
        {
            if (player == null)
            {
                throw new ArgumentNullException("player");
            }

            Recorder  = new RecorderViewModel(this, player);
            Notifier  = new NotifyViewModel(Recorder);
            Converter = new ConvertViewModel(this);

            IsPreviewVisible = true;
            CurrentDirectory = Settings.Default.DefaultFolder;
            StatusText       = Resources.Status_Ready;



            PropertyChanged           += MainViewModel_PropertyChanged;
            Recorder.PropertyChanged  += recorder_PropertyChanged;
            Converter.PropertyChanged += Convert_PropertyChanged;
        }
Пример #2
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        /// 
        public MainViewModel(VideoSourcePlayer player)
        {
            if (player == null) throw new ArgumentNullException("player");

            Recorder = new RecorderViewModel(this, player);
            Notifier = new NotifyViewModel(Recorder);
            Converter = new ConvertViewModel(this);

            IsPreviewVisible = true;
            CurrentDirectory = Settings.Default.DefaultFolder;
            StatusText = Resources.Status_Ready;



            PropertyChanged += MainViewModel_PropertyChanged;
            Recorder.PropertyChanged += recorder_PropertyChanged;
            Converter.PropertyChanged += Convert_PropertyChanged;
        }