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