示例#1
0
 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;
 }
示例#2
0
		public FrameViewModel(LibraryFrame libraryFrame)
		{
			Frame = libraryFrame;
			ImportSvgCommand = new RelayCommand(OnImportSvg);
			ExportSvgCommand = new RelayCommand(OnExportSvg);
		}