예제 #1
0
 private void SerializationHelper_SerializationStarted(object sender, SerializationStartedEventArgs e)
 {
     var dict = GetProperties().ToDictionary(x => x.Name, x => x.GetValue(this, null));
     e.Data.Add(serializationKey, dict);
 }
        private void SerializationStarted(object sender, SerializationStartedEventArgs e)
        {
            Directories.Where(x => !x.FileSystem.IsWindowsFileSystem).ForEach(x => x.ChangeFileSystem(new WindowsFileSystem(IOHelper.GetDefaultPath())));

            var dict = new Dictionary<string, object>(2);
            dict.Add("Paths", Directories.Where(x => !x.IsAddTab).Select(x => x.FullPath).ToArray());
            dict.Add("Views", Directories.Where(x => !x.IsAddTab).Select(x => x.ViewType).ToArray());
            e.Data.Add(SerializationKey, dict);
        }