private LibraryItem CreateLibraryItem() { LibraryItem item = new LibraryItem() { SceneContent = CreateSceneContent() }; return item; }
private void replicateButton_Tapped(object sender, TappedRoutedEventArgs e) { string selectedText = contentText.SelectedText; if (string.IsNullOrEmpty(selectedText)) { selectedText = contentText.Text; } LibraryItem libraryItem = new LibraryItem(); libraryItem.SceneContent = new TextSceneContent(); libraryItem.SceneContent.Content = selectedText; libraryItem.Id = "replicated"; ReplicaCreated(libraryItem); }
private async System.Threading.Tasks.Task LoadFiles(IList<StorageFile> files) { foreach (StorageFile file in files) { LibraryItem libraryItem = new LibraryItem(); libraryItem.Id = file.Name; libraryItem.SceneContent = new TextSceneContent(); libraryItem.SceneContent.Content = await FileIO.ReadTextAsync(file); libraryViewModel.Items.Add(libraryItem); } }
public Scene(LibraryItem libraryItem) : this() { _libraryItem = libraryItem; _libraryItemId = libraryItem.Id; }
public InteractiveScene(LibraryItem libraryItem) : base(libraryItem) { }