|
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace EventCalendarDemo
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected EventCalendar.EventCalendarControl EventCalendarControl1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string xmlData;
xmlData = "<NewDataSet>";
xmlData += " <group>";
xmlData += " <name>Envision Solution</name>";
xmlData += " <blockcolor>#ff0000</blockcolor>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=7</href>";
xmlData += " <StartDate>2005-04-01T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-03T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Assess Current Solution</name>";
xmlData += " </block>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=12</href>";
xmlData += " <StartDate>2005-04-03T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-05T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Define Problem</name>";
xmlData += " </block>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=13</href>";
xmlData += " <StartDate>2005-04-06T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-06T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Propose Solution</name>";
xmlData += " </block>";
xmlData += " </group>";
xmlData += " <group>";
xmlData += " <name>Gather Business Requirements</name>";
xmlData += " <blockcolor>#99ff66</blockcolor>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=14</href>";
xmlData += " <StartDate>2005-04-06T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-09T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Describe current business state</name>";
xmlData += " </block>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=15</href>";
xmlData += " <StartDate>2005-04-06T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-09T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Analyse business requirements</name>";
xmlData += " </block>";
xmlData += " </group>";
xmlData += " <group>";
xmlData += " <name>Gather User Requirements</name>";
xmlData += " <blockcolor>#66cc66</blockcolor>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=16</href>";
xmlData += " <StartDate>2005-04-09T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-04-15T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>User Workshops</name>";
xmlData += " </block>";
xmlData += " </group>";
xmlData += " <group>";
xmlData += " <name>Develop Specifications</name>";
xmlData += " <blockcolor>#cc66cc</blockcolor>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=17</href>";
xmlData += " <StartDate>2005-04-10T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-05-10T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Technical Architecture</name>";
xmlData += " </block>";
xmlData += " <block>";
xmlData += " <href>activity.aspx?ActID=18</href>";
xmlData += " <StartDate>2005-04-15T00:00:00.0000000+01:00</StartDate>";
xmlData += " <EndDate>2005-05-15T00:00:00.0000000+01:00</EndDate>";
xmlData += " <name>Software Architecture</name>";
xmlData += " </block>";
xmlData += " </group>";
xmlData += "</NewDataSet>";
EventCalendarControl1.XMLData = xmlData;
EventCalendarControl1.BlankGifPath = "trans.gif";
EventCalendarControl1.Year = 2005;
EventCalendarControl1.Quarter = 2;
EventCalendarControl1.BlockColor = "blue";
EventCalendarControl1.ToggleColor = "#dcdcdc";
EventCalendarControl1.CellHeight = 15;
EventCalendarControl1.CellWidth = 15;
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Jean-marc is a IT consultant specializing on the microsoft platform. Jean-marc lives in London, UK.