private void BindToolbar() { Header3.Title = LocRM.GetString("tIBNSnapshotInfo"); Header3.AddLink(String.Format("<img width='16' height='16' title='{0}' border='0' align='top' src='{1}'/> {0}", LocRM.GetString("tAddTools"), this.Page.ResolveUrl("~/Layouts/Images/cancel.gif")), ResolveUrl("~/Apps/Administration/Pages/default.aspx?NodeId=MAdmin8")); }
public void MultiElementsTest() { string text = "text"; Header3 h3 = new Header3(text); Paragraph p = new Paragraph($"This is a text "); p.AddElement(h3); Assert.Equal($"<p>This is a text <h3>{text}</h3></p>", p.ToHtml()); }
public void SingleElementTest() { string id = "id1"; string name = "name1"; string text = "text"; string style = "color:red"; Header3 h3 = new Header3(text, id, name, style); Assert.Equal($"<h3 id=\"{id}\" name=\"{name}\" style=\"{style}\">{text}</h3>", h3.ToHtml()); }
public PrimaryVolumeDescriptor() : base() { hdr3 = misc.AllocStruct<Header3>(); hdr3.rootDir.lenDirRec = (byte)(FileDirectoryDescriptor.DefaultSize + 1); hdr3.rootDir.filFlags = 2; hdr3.rootDir.volSeqNumL = 1; hdr3.rootDir.volSeqNumM = hdr3.rootDir.volSeqNumL.ChangeEndian(); hdr3.rootDir.lenFilId = 1; hdr3.fileStructVer = 1; }
public PrimaryVolumeDescriptor(sio.FileStream fs) : base(fs) { hdr3 = misc.ReadStruct<Header3>(fs); }