Пример #1
0
		private static DirectoryInfo ActiveDirectoryCoerce(FileManager i, DirectoryInfo val)
		{
			if (val.Exists && val.IsAccessible())
			{
				return val;
			}
			return new DirectoryInfo(FileManagerSettings.Instance.HomeDirectory);
		}
Пример #2
0
		private static void ActiveDirectoryChanged(FileManager i, DPChangedEventArgs<DirectoryInfo> e)
		{
			i.RaiseEvent(new RoutedEventArgs(DirectoryChangedEvent, e.NewValue));
			FileManagerSettings.Instance.LastDirectory = e.NewValue.FullName;
			i.refresh();
		}
Пример #3
0
 private static void ActiveDirectoryChanged(FileManager i, DPChangedEventArgs <DirectoryInfo> e)
 {
     i.RaiseEvent(new RoutedEventArgs(DirectoryChangedEvent, e.NewValue));
     FileManagerSettings.Instance.LastDirectory = e.NewValue.FullName;
     i.refresh();
 }