public BufferedProperty(ConfigAsker ca, string prop, T def, Func <string, T> converter)
 {
     _ca        = ca;
     _prop      = prop;
     _def       = def;
     _converter = converter;
 }
Example #2
0
        public SftpDb(string path)
        {
            DestPath = GrfPath.Combine(SdeAppConfiguration.ProgramDataPath, path.GetHashCode().ToString(CultureInfo.InvariantCulture));
            var file = GrfPath.Combine(DestPath, "files.dat");

            GrfPath.CreateDirectoryFromFile(file);
            _config = new ConfigAsker(file);
        }
Example #3
0
        public BackupInfo(ConfigAsker info)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            _info = info;
        }
Example #4
0
 public static void ResetAllSettings()
 {
     ConfigAsker.DeleteKeys("");
     _bufferedServerType.Reset();
     _intToConstants.Clear();
     _reverseTable.Clear();
     _reverseTableSub.Clear();
     _itemDb    = null;
     _isRenewal = null;
 }
Example #5
0
 public GSearchSettings(ConfigAsker configAsker, string settingsGroupName)
 {
     _configAsker       = configAsker;
     _settingsGroupName = settingsGroupName;
 }
Example #6
0
		public SdeRecentFiles(ConfigAsker config, int numberOfFiles, MenuItem menuItem) : base(config, numberOfFiles, "Server database editor") {
			_menuItem = menuItem;
			RecentFilesChanged += _exampleProjectRecentFiles_RecentFilesChanged;
		}
Example #7
0
		public GSearchSettings(ConfigAsker configAsker, string settingsGroupName) {
			_configAsker = configAsker;
			_settingsGroupName = settingsGroupName;
		}
Example #8
0
		public BackupInfo(ConfigAsker info) {
			if (info == null) throw new ArgumentNullException("info");

			_info = info;
		}
Example #9
0
 public SdeRecentFiles(ConfigAsker config, int numberOfFiles, MenuItem menuItem) : base(config, numberOfFiles, "Server database editor")
 {
     _menuItem           = menuItem;
     RecentFilesChanged += _exampleProjectRecentFiles_RecentFilesChanged;
 }