private void ItemList_SelectedIndexChanged(object sender, EventArgs e) { string html = HTML.Artifact(Artifact, Session.Preferences.TextSize, false, true); Browser.Document.OpenNew(true); Browser.Document.Write(html); }
private void ItemList_SelectedIndexChanged(object sender, EventArgs e) { string str = HTML.Artifact(this.Artifact, DisplaySize.Small, false, true); this.Browser.Document.OpenNew(true); this.Browser.Document.Write(str); }
private void set_controls() { bool magicItemID = this.fParcel.MagicItemID != Guid.Empty; bool artifactID = this.fParcel.ArtifactID != Guid.Empty; bool flag = (magicItemID ? false : !artifactID); this.ChangeToMundaneParcel.Enabled = !flag; this.ChangeToMagicItem.Enabled = (magicItemID ? false : Session.MagicItems.Count != 0); this.ChangeToArtifact.Enabled = (artifactID ? false : Session.Artifacts.Count != 0); this.Browser.Visible = !flag; this.DetailsPanel.Visible = flag; this.SelectBtn.Enabled = (magicItemID ? true : artifactID); if (flag) { this.NameBox.Text = this.fParcel.Name; this.DetailsBox.Text = this.fParcel.Details; return; } MagicItem magicItem = Session.FindMagicItem(this.fParcel.MagicItemID, SearchType.Global); if (magicItem != null) { string str = HTML.MagicItem(magicItem, DisplaySize.Small, false, true); this.Browser.DocumentText = str; } Artifact artifact = Session.FindArtifact(this.fParcel.ArtifactID, SearchType.Global); if (artifact != null) { string str1 = HTML.Artifact(artifact, DisplaySize.Small, false, true); this.Browser.DocumentText = str1; } }
public void ShowArtifact(Artifact artifact) { string str = HTML.Artifact(artifact, PlayerViewForm.DisplaySize, false, true); this.set_html(str); base.Show(); }
public ArtifactDetailsForm(Artifact artifact) { InitializeComponent(); fArtifact = artifact.Copy(); Browser.DocumentText = HTML.Artifact(fArtifact, Session.Preferences.TextSize, false, true); }
public void ShowArtifact(Artifact artifact) { string html = HTML.Artifact(artifact, Session.Preferences.PlayerViewTextSize, false, true); set_html(html); Show(); }
void set_controls() { bool magic = fParcel.MagicItemID != Guid.Empty; bool artifact = fParcel.ArtifactID != Guid.Empty; bool mundane = !magic && !artifact; ChangeToMundaneParcel.Enabled = !mundane; ChangeToMagicItem.Enabled = !magic && (Session.MagicItems.Count != 0); ChangeToArtifact.Enabled = !artifact && (Session.Artifacts.Count != 0); Browser.Visible = !mundane; DetailsPanel.Visible = mundane; SelectBtn.Enabled = magic || artifact; if (mundane) { NameBox.Text = fParcel.Name; DetailsBox.Text = fParcel.Details; } else { MagicItem item = Session.FindMagicItem(fParcel.MagicItemID, SearchType.Global); if (item != null) { string html = HTML.MagicItem(item, Session.Preferences.TextSize, false, true); Browser.DocumentText = html; } Artifact a = Session.FindArtifact(fParcel.ArtifactID, SearchType.Global); if (a != null) { string html = HTML.Artifact(a, Session.Preferences.TextSize, false, true); Browser.DocumentText = html; } } }
public ArtifactDetailsForm(Artifact artifact) { this.InitializeComponent(); this.fArtifact = artifact.Copy(); this.Browser.DocumentText = HTML.Artifact(this.fArtifact, DisplaySize.Small, false, true); }
void update_statblock() { StatBlockBrowser.DocumentText = HTML.Artifact(fArtifact, Session.Preferences.TextSize, true, true); }
private void update_statblock() { this.StatBlockBrowser.DocumentText = HTML.Artifact(this.fArtifact, DisplaySize.Small, true, true); }