Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
0
        public PhotoSession()
        {
            var 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 = "Session1";
            CaptureName = "Capture";
            Braketing = new BracketingClass();
            try
            {
                Folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures),"digiCamControl", Name);
            }
            catch (Exception exception)
            {
                Log.Error("Error set My pictures folder", exception);
                Folder = "c:\\";
            }
            Files = new AsyncObservableCollection<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();
        }
Ejemplo n.º 3
0
        public PhotoSession(bool _autoload, string _FolderPath)
        {
            var 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);

            if (_autoload == false)
            {
                Folder = _FolderPath;
                if (Folder != null)
                {
                    Name = new DirectoryInfo(Folder).Name;
                }
                else
                {
                    Name = "NoName";
                }
                //string dirName = new DirectoryInfo(_FolderPath).Name;
                AlowFolderChange     = true;
                AllowOverWrite       = true;
                ReloadOnFolderChange = true;
            }
            else
            {
                //Name = TranslationStrings.MenuSessionName;
                Name = _FolderPath;
                try
                {
                    Folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "OrangeMonkie", Name);
                }
                catch (Exception exception)
                {
                    Log.Error("Error set My pictures folder", exception);
                    Folder = "c:\\";
                }
                AlowFolderChange = false;
                AllowOverWrite   = false;
            }

            CaptureName = "Capture";
            Braketing   = new BracketingClass();

            Files            = new AsyncObservableCollection <FileItem>();
            FileNameTemplate = "DSC_[Counter 4 digit]";

            UseOriginalFilename = false;
            Tags             = new AsyncObservableCollection <TagItem>();
            UseCameraCounter = false;
            DownloadOnlyJpg  = false;
            LeadingZeros     = 4;
            WriteComment     = false;

            LowerCaseExtension      = true;
            AutoExportPluginConfigs = new AsyncObservableCollection <AutoExportPluginConfig>();
            TimeLapseSettings       = new TimeLapseSettings();
            PrintSettings           = new PrintSettings();
        }