Пример #1
0
 protected void Application_Start(object sender, EventArgs e)
 {
     Application.Lock();
     Application["MainController"] = new MainController();
     Application["count"] = 0;
     Application["room_list"] = new List<string>();
     Application.UnLock();
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     mainController = Application["MainController"] as MainController;
     if (Session["user"] != null)
     {
         Response.Redirect("list.aspx");
     }
 }