Ejemplo n.º 1
0
    protected void Calendar1_SelectionChanged(object sender,EventArgs e)
    {
        string nm = " for " + ToCamelCase(GetUserName()) + " ";

        this.ThisDate      = Calendar1.SelectedDate.Date;
        Session[thisdate]  = this.ThisDate;
        txtNickName.Text   = (Session[ReportName] as string) + nm + "on " + ThisDate.ToShortDateString();
        Session[SavedNick] = txtNickName.Text;
        if (!String.IsNullOrEmpty(TextBox7.Text))
        {
            txtNickName.Text = txtNickName.Text + " at " + TextBox7.Text + " Hours";
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// recurrence
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DoingAgenda())
        {
            Button8.Text = "Save Item";
        }
        else
        {
            Button8.Text = "Create Item";
        }
        string nm = " for " + ToCamelCase(GetUserName()) + " ";
        int    rb = RadioButtonList1.SelectedIndex;

        Cal.Visible   = false;
        DOWs.Visible  = false;
        Hours.Visible = false;
        if (rb != 0)
        {
            if (rb == 2)
            {
                DOWs.Visible             = true;
                Hours.Visible            = true;
                lbDOW.Text               = "Schedule Day of the Week and Time Slot";
                RadioButtonList2.Visible = true;
                txtNickName.Text         = (Session[ReportName] as string) + nm + RadioButtonList1.Text;
            }
            else if (rb == 1)
            {
                Cal.Visible              = true;
                Hours.Visible            = true;
                LbHou.Text               = "Schedule Specifc Date and Time Slot";
                RadioButtonList2.Visible = true;
                ThisDate         = Calendar1.SelectedDate;
                txtNickName.Text = (Session[ReportName] as string) + nm + "on " + ThisDate.ToShortDateString();
            }
            else
            {
                DOWs.Visible             = true;
                lbDOW.Text               = "Schedule Time Slot";
                RadioButtonList2.Visible = false;
                txtNickName.Text         = (Session[ReportName] as string) + nm + RadioButtonList1.SelectedItem.Text;
            }
            Session[SavedNick] = txtNickName.Text;
        }
    }