Exemplo 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;
        }
Exemplo n.º 3
0
        public PhotoSession()
        {
            _systemWatcher = new FileSystemWatcher();
            _systemWatcher.EnableRaisingEvents = false;
            //_systemWatcher.Deleted += _systemWatcher_Deleted;
            //_systemWatcher.Created += new FileSystemEventHandler(_systemWatcher_Created);
            AddPluginCommand       = new RelayCommand <IAutoExportPlugin>(AddPlugin);
            RemovePluginCommand    = new RelayCommand <AutoExportPluginConfig>(RemovePlugin);
            ConfigurePluginCommand = new RelayCommand <AutoExportPluginConfig>(ConfigurePlugin);
            ApplyPluginCommand     = new RelayCommand <AutoExportPluginConfig>(ApplyPlugin);

            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 ObservableCollection <FileItem>();
            FileNameTemplate = "DSC_[Counter 4 digit]";

            UseOriginalFilename = false;
            AlowFolderChange    = false;
            Tags                    = new AsyncObservableCollection <TagItem>();
            UseCameraCounter        = false;
            DownloadOnlyJpg         = false;
            LeadingZeros            = 4;
            WriteComment            = false;
            AllowOverWrite          = false;
            LowerCaseExtension      = true;
            AutoExportPluginConfigs = new AsyncObservableCollection <AutoExportPluginConfig>();
            TimeLapseSettings       = new TimeLapseSettings();
            PrintSettings           = new PrintSettings();
        }
Exemplo n.º 4
0
        public PhotoSession()
        {
            _systemWatcher = new FileSystemWatcher();
            _systemWatcher.EnableRaisingEvents = false;
            //_systemWatcher.Deleted += _systemWatcher_Deleted;
            //_systemWatcher.Created += new FileSystemEventHandler(_systemWatcher_Created);
            RemovePluginCommand = new RelayCommand<AutoExportPluginConfig>(RemovePlugin);
            ApplyPluginCommand=new RelayCommand<AutoExportPluginConfig>(ApplyPlugin);

            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 ObservableCollection<FileItem>();
            FileNameTemplate = "DSC_[Counter 4 digit]";

            UseOriginalFilename = false;
            AlowFolderChange = false;
            Tags = new AsyncObservableCollection<TagItem>();
            UseCameraCounter = false;
            DownloadOnlyJpg = false;
            LeadingZeros = 4;
            WriteComment = false;
            AllowOverWrite = false;
            LowerCaseExtension = true;
            AutoExportPluginConfigs = new AsyncObservableCollection<AutoExportPluginConfig>();
            TimeLapseSettings = new TimeLapseSettings();
            PrintSettings = new PrintSettings();
        }