Exemplo n.º 1
0
        private MainSettings()
        {
            _defaultFolder = Path.Combine(
                Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                "gifuser"
                );

            _recordings        = new RecordingSettings(this);
            _uploadOnStop      = true;
            _uploadServiceName = "imgur";
        }
Exemplo n.º 2
0
        public SettingsDialog(RecordingSettings settings)
        {
            this.Build();

            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _settings = settings;

            folderEntry.Text  = _settings.Folder;
            spinbutton1.Value = _settings.Delay;

            _settings.PropertyChanged += _settings_PropertyChanged;
            folderEntry.FocusOutEvent += FolderEntry_FocusOutEvent;
            spinbutton1.FocusOutEvent += Spinbutton1_FocusOutEvent;
        }