Esempio n. 1
0
 public BufferedProperty(ConfigAsker ca, string prop, T def, Func <string, T> converter)
 {
     _ca        = ca;
     _prop      = prop;
     _def       = def;
     _converter = converter;
 }
Esempio n. 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);
        }
Esempio n. 3
0
        public BackupInfo(ConfigAsker info)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

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

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