Beispiel #1
0
 private void initData()
 {
     if (Session["AllFeatures"] == null)
     {
         Session["AllFeatures"] = DataGeneratorCalendar.GetData();
     }
     table = (DataTable)Session["AllFeatures"];
 }
Beispiel #2
0
    private void initData()
    {
        string id = "AllFeatures";

        if (Session[id] == null)
        {
            Session[id] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session[id];
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["EventLeftBar"] == null)
            {
                Session["EventLeftBar"] = DataGeneratorCalendar.GetData();
            }

            DayPilotCalendar1.DataSource = Session["EventLeftBar"];
            DataBind();
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["AllFeatures"] == null)
        {
            Session["AllFeatures"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["AllFeatures"];
        DayPilotCalendar1.DataSource = table;

        if (!IsPostBack)
        {
            DayPilotCalendar1.StartDate = firstDayOfWeek(DateTime.Now, DayOfWeek.Sunday);
            DataBind();
        }
    }
Beispiel #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Data loading initialization
        if (Session["ContextMenuData"] == null)
        {
            Session["ContextMenuData"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["ContextMenuData"];
        DayPilotCalendar1.DataSource = Session["ContextMenuData"];
        #endregion

        if (!IsPostBack)
        {
            DataBind();
        }
    }
Beispiel #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UpdatePanel"] == null)
        {
            Session["UpdatePanel"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["UpdatePanel"];
        DayPilotCalendar1.DataSource = table;


        if (!IsPostBack)
        {
            Calendar1.SelectedDate = DateTime.Today;
            DataBind();
        }
    }
Beispiel #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Data loading initialization
        if (Session["EventDeleting"] == null)
        {
            Session["EventDeleting"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["EventDeleting"];
        DayPilotCalendar1.DataSource = Session["EventDeleting"];
        #endregion

        if (!IsPostBack)
        {
            DayPilotCalendar1.StartDate = DayPilot.Utils.Week.FirstDayOfWeek(DateTime.Today);
            DataBind();
        }
    }
Beispiel #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Data loading initialization
        if (Session["AllFeatures"] == null)
        {
            Session["AllFeatures"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["AllFeatures"];
        DayPilotCalendar1.DataSource = Session["AllFeatures"];
        #endregion

        if (!IsPostBack)
        {
            DataBind();
            DayPilotCalendar1.UpdateWithMessage("Welcome!");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Data loading initialization
        if (Session["ResourcesMultiDayView"] == null)
        {
            Session["ResourcesMultiDayView"] = DataGeneratorCalendar.GetData();
        }
        table = (DataTable)Session["ResourcesMultiDayView"];
        DayPilotCalendar1.DataSource = Session["ResourcesMultiDayView"];
        #endregion

        defineColumns();

        if (!IsPostBack)
        {
            DataBind();
        }
    }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        defineColumns();

        DayPilotCalendar1.StartDate = DayPilot.Utils.Week.FirstDayOfWeek();

        if (Session["AllFeatures"] == null)
        {
            Session["AllFeatures"] = DataGeneratorCalendar.GetData();
        }



        DayPilotCalendar1.DataSource = Session["AllFeatures"];
        DataBind();

        // override the output
        Response.Clear();
        Response.ContentType = "image/png";
        MemoryStream img = DayPilotCalendar1.Export(ImageFormat.Png);

        img.WriteTo(Response.OutputStream);
        Response.End();
    }
Beispiel #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DayPilotCalendar1.StartDate  = DayPilot.Utils.Week.FirstDayOfWeek(DateTime.Today);
     DayPilotCalendar1.DataSource = DataGeneratorCalendar.GetData();
     DataBind();
 }