syntaxhighlight test

This is a quick test to see if the syntax highlighter is working...
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using BvDWeB.Classes.Core;
using BvDWeB.Classes.Models;

namespace BvDWeB.UI
{
 public partial class _Default : Page
 {
  private BvDSystem _bvdSystem;
  protected void Page_Load(object sender, EventArgs e)
  {
   if(!IsPostBack)
   {
    if(Session["BvDSystem"] == null)
    {
     Response.Redirect("~/Index.aspx");
    }
    _bvdSystem = (BvDSystem) Session["BvDSystem"];
    
    
    if (Request["systemChoosen"] != null)
    {
     bvdTree.Value = _bvdSystem.ActiveSystem.TreeToUse;
    }
    else
    {
     bvdLoadBvDUserSystem.Value = _bvdSystem.LoadBvDUserSystem.ToString();

     if (!_bvdSystem.LoadBvDUserSystem)
     {
      foreach (BvDSystem system in _bvdSystem.Systems)
      {
       ListItem item = new ListItem(system.Title, system.Config, false);
       item.Attributes.Add("systemIndex", system.SystemIndex.ToString());
       ddlSystems.Items.Add(item);
      }
     }
     else
     {
      bvdTree.Value = _bvdSystem.ActiveSystem.TreeToUse;
     }
    }
   }
  }
 }
}


0 comments:

Post a Comment