/// <summary> /// Populates the directory breadcrumb placeholder. See also methods linkButton_Click e lnkRoot_Click. /// </summary> private void PopulateBreadcrumb() { plhDirectory.Controls.Clear(); // Get all directories by splitting the content of txtCurrentDirectory string[] dirs = CurrentDirectory.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries); // Add a LinkButton and a "/" label for each directory string current = "/"; for (int i = 0; i < dirs.Length; i++) { Anthem.LinkButton lnk = new Anthem.LinkButton(); lnk.ID = "lnkDir" + i.ToString(); lnk.Text = dirs[i]; current += dirs[i] + "/"; lnk.CommandArgument = current; lnk.ToolTip = current; lnk.Click += new EventHandler(linkButton_Click); plhDirectory.Controls.Add(lnk); Anthem.Label lbl = new Anthem.Label(); lbl.ID = "lblDir" + i.ToString(); lbl.Text = " / "; plhDirectory.Controls.Add(lbl); } }
public RepeaterSelect(Page objPage, Anthem.Repeater reperterFolder, Anthem.Label tableSourceCount, Anthem.ImageButton gridFirstPage, Anthem.ImageButton gridBefore, Anthem.ImageButton gridNext, Anthem.ImageButton gridEnd, Anthem.DropDownList gridJump, Anthem.DropDownList dDlgridSourceCount) { _objPage = objPage; //_btnSimpleSearch = btnSimpleSearch; _repeaterFolder = reperterFolder; _tableSourceCount = tableSourceCount; _gridFirstPage = gridFirstPage; _gridBefore = gridBefore; _gridNext = gridNext; _gridEnd = gridEnd; _gridJump = gridJump; _ddlgridSourceCount = dDlgridSourceCount; }
/// <summary> /// Populates the directory breadcrumb placeholder. See also methods linkButton_Click e lnkRoot_Click. /// </summary> private void PopulateBreadcrumb() { plhDirectory.Controls.Clear(); // Get all directories by splitting the content of txtCurrentDirectory string[] dirs = CurrentDirectory.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries); // Add a LinkButton and a "/" label for each directory string current = "/"; for(int i = 0; i < dirs.Length; i++) { Anthem.LinkButton lnk = new Anthem.LinkButton(); lnk.ID = "lnkDir" + i.ToString(); lnk.Text = dirs[i]; current += dirs[i] + "/"; lnk.CommandArgument = current; lnk.ToolTip = current; lnk.Click += new EventHandler(linkButton_Click); plhDirectory.Controls.Add(lnk); Anthem.Label lbl = new Anthem.Label(); lbl.ID = "lblDir" + i.ToString(); lbl.Text = " / "; plhDirectory.Controls.Add(lbl); } }