Ejemplo n.º 1
0
  private void AddZoneRow(HtmlGenericControl tableBody, Configuration.ZoneRow zone)
  {
    HtmlTableRow tr = new HtmlTableRow();
    tableBody.Controls.Add(tr);
    tr.Attributes["class"] = "NoSelection Zone";
    tr.Attributes["data-zone"] = zone.ZoneID;

    HtmlTableCell td = new HtmlTableCell();
    tr.Cells.Add(td);
    td.Attributes["class"] = "Value";
    td.InnerHtml = " ";

    td = new HtmlTableCell();
    tr.Cells.Add(td);
    td.Attributes["class"] = "CommandLink";
    td.InnerText = zone.IsDisplayNameNull() ? zone.ZoneID : zone.DisplayName;
  }
Ejemplo n.º 2
0
  private void AddLevelRow(HtmlGenericControl tableBody, Configuration.LevelRow level, Configuration.ZoneRow zone)
  {
    HtmlTableRow tr = new HtmlTableRow();
    tableBody.Controls.Add(tr);
    tr.Attributes["class"] = "NoSelection";
    tr.Attributes["data-level"] = level.LevelID;

    if (zone != null)
    {
      tr.Attributes["class"] += " ZoneLevel";
      tr.Attributes["data-zone"] = zone.ZoneID;
    }
    else
    {
      tr.Attributes["class"] += " Level";
    }

    HtmlTableCell td = new HtmlTableCell();
    tr.Cells.Add(td);
    td.Attributes["class"] = "Value";
    td.InnerHtml = " ";

    td = new HtmlTableCell();
    tr.Cells.Add(td);
    td.Attributes["class"] = "CommandLink";
    td.InnerText = level.IsDisplayNameNull() ? level.LevelID : level.DisplayName;
    
    if (zone != null)
    {
      td.Style["padding-left"] = "20px";
    }
  }