private void AssignToSelected() { SplineTreeItem currentItem = this.GetCurrentItem(); if (currentItem == null) { return; } using (PromptInventory promptInventory = new PromptInventory()) { promptInventory.Root = SplineInventory.Instance.Root; promptInventory.Value = (currentItem.Spline.IsValid ? currentItem.Spline.Entry : SplineInventory.Entry.Null); if (promptInventory.ShowDialog(this) != DialogResult.Cancel) { this.AssignSplineId(currentItem.Id, (SplineInventory.Entry)promptInventory.Value); } } }
private void AssignToSelected() { TextureTreeItem currentItem = this.GetCurrentItem(); if (currentItem == null) { return; } using (PromptInventory promptInventory = new PromptInventory()) { promptInventory.Root = TextureInventory.Instance.Root; promptInventory.Value = currentItem.Entry; if (promptInventory.ShowDialog(this) != DialogResult.Cancel) { this.AssignTextureId(currentItem.Id, (TextureInventory.Entry)promptInventory.Value); } } }
private void NewWildernessInternal() { this.NewMapInternal(); using (PromptInventory promptInventory = new PromptInventory()) { promptInventory.Root = WildernessInventory.Instance.Root; if (promptInventory.ShowDialog(this) == DialogResult.OK) { Wilderness.RunScriptEntry((WildernessInventory.Entry)promptInventory.Value); } } }