private SaveClass(ViewModel vm) { Window = new WindowInfo(); Search = new SearchInfo(); Choose = new ChooseInfo(); Edit = new EditInfo(); Copy = new CopyInfo(); Mix = new MixInfo(); Window.Width = vm.WindowWidth; Window.Height = vm.WindowHeight; Window.PositionX = vm.WindowLeft; Window.PositionY = vm.WindowTop; Window.Maximized = vm.WindowState == System.Windows.WindowState.Maximized; Search.Src = (SerializableFolder?)vm.Search.Src; Search.Ref = (SerializableFolder?)vm.Search.Ref; Search.SrcFound = vm.Search.SrcFound; Search.SrcNot = vm.Search.SrcNot; Search.RefFound = vm.Search.RefFound; Search.WithExtensions = vm.Search.IsWithExtension; Choose.Src = (SerializableFolder?)vm.Choose.Src; Choose.Have = vm.Choose.Have; Choose.Havent = vm.Choose.Havent; Choose.MinWidth = vm.Choose.Min.Width; Choose.MinHeight = vm.Choose.Min.Height; Choose.MaxWidth = vm.Choose.Max.Width; Choose.MaxHeight = vm.Choose.Max.Height; Edit.Src = (SerializableFolder?)vm.Edit.Src; Edit.DestPath = vm.Edit.Dest?.OriginalPath; Edit.FlipX = vm.Edit.IsFlipX; Edit.FlipY = vm.Edit.IsFlipY; Edit.Wanna = vm.Edit.Wanna; Edit.Offset = vm.Edit.Offset; Edit.Mode = vm.Edit.ModeType; Edit.ReferencePositionType = vm.Edit.ReferencePosition; Edit.EditEncoder = vm.Edit.EncoderType; Copy.Src = (SerializableFolder?)vm.Copy.Src; Copy.DestPath = vm.Copy.Dest?.OriginalPath; Mix.Folder = (SerializableFolder?)vm.Mix.Folder; Mix.Mix = vm.Mix.IsMix; Mix.Auto = vm.Mix.IsAuto; }
private SaveClass() { Window = new WindowInfo(); Search = new SearchInfo(); Choose = new ChooseInfo(); Edit = new EditInfo(); Copy = new CopyInfo(); Mix = new MixInfo(); }