Esempio n. 1
0
        public PhotoSession()
        {
            _systemWatcher = new FileSystemWatcher();
            _systemWatcher.EnableRaisingEvents = false;
            _systemWatcher.Deleted            += _systemWatcher_Deleted;
            _systemWatcher.Created            += new FileSystemEventHandler(_systemWatcher_Created);

            Name             = "Default";
            Braketing        = new BraketingClass();
            Folder           = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), Name);
            Files            = new AsyncObservableCollection <FileItem>();
            FileNameTemplate = "DSC_$C";
            TimeLapse        = new TimeLapseClass();
            if (ServiceProvider.Settings != null && ServiceProvider.Settings.VideoTypes.Count > 0)
            {
                TimeLapse.VideoType = ServiceProvider.Settings.VideoTypes[0];
            }
            TimeLapse.OutputFIleName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos),
                                                    Name + ".avi");
            UseOriginalFilename = false;
            AlowFolderChange    = false;
            Tags             = new AsyncObservableCollection <TagItem>();
            UseCameraCounter = false;
            DownloadOnlyJpg  = false;
            LeadingZeros     = 4;
        }
        public PhotoSession()
        {
            _systemWatcher = new FileSystemWatcher();
            _systemWatcher.EnableRaisingEvents = false;
            //_systemWatcher.Deleted += _systemWatcher_Deleted;
            //_systemWatcher.Created += new FileSystemEventHandler(_systemWatcher_Created);

            Name = "Default";
            Braketing = new BraketingClass();
            try
            {
                Folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), Name);
            }
            catch (Exception exception)
            {
                Log.Error("Error set My pictures folder", exception);
                Folder = "c:\\";
            }
            Files = new AsyncObservableCollection<FileItem>();
            FileNameTemplate = "DSC_$C";
            TimeLapse = new TimeLapseClass();
            if (ServiceProvider.Settings != null && ServiceProvider.Settings.VideoTypes.Count > 0)
                TimeLapse.VideoType = ServiceProvider.Settings.VideoTypes[0];
            try
            {
                TimeLapse.OutputFIleName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos),
                                                        Name + ".avi");
            }
            catch (Exception exception)
            {
                Log.Error("Error set My videos folder", exception);
                TimeLapse.OutputFIleName = "c:\\";
            }

            UseOriginalFilename = false;
            AlowFolderChange = false;
            Tags = new AsyncObservableCollection<TagItem>();
            UseCameraCounter = false;
            DownloadOnlyJpg = false;
            LeadingZeros = 4;
            WriteComment = false;
            AllowOverWrite = false;
        }
        public PhotoSession()
        {
            _systemWatcher = new FileSystemWatcher();
            _systemWatcher.EnableRaisingEvents = false;
            //_systemWatcher.Deleted += _systemWatcher_Deleted;
            //_systemWatcher.Created += new FileSystemEventHandler(_systemWatcher_Created);

            Name = "Default";
            CaptureName = "Capture";
            Braketing = new BraketingClass();
            try
            {
                Folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), Name);
            }
            catch (Exception exception)
            {
                Log.Error("Error set My pictures folder", exception);
                Folder = "c:\\";
            }
            Files = new AsyncObservableCollection<FileItem>();
            FileNameTemplate = "DSC_[Counter 4 digit]";
            TimeLapse = new TimeLapseClass();
            
            UseOriginalFilename = false;
            AlowFolderChange = false;
            Tags = new AsyncObservableCollection<TagItem>();
            UseCameraCounter = false;
            DownloadOnlyJpg = false;
            LeadingZeros = 4;
            WriteComment = false;
            AllowOverWrite = false;
        }