void OnAddFrame() { var skdLibraryFrame = new SKDLibraryFrame() { Id = Frames.Count }; State.Frames.Add(skdLibraryFrame); Frames.Add(new FrameViewModel(skdLibraryFrame)); SelectedFrame = Frames.LastOrDefault(); ServiceFactory.SaveService.SKDLibraryChanged = true; }
public FrameViewModel(SKDLibraryFrame skdLibraryFrame) { Frame = skdLibraryFrame; ImportSvgCommand = new RelayCommand(OnImportSvg); ExportSvgCommand = new RelayCommand(OnExportSvg); }