Example #1
0
    private void BuildTimeZoneSelect(TimeZone tz, string clientTimeZone)
    {
        // option...............
        CompTzSelect.Items.Add(new ListItem(tz.DisplayName));
        if (clientTimeZone != tz.KeyName)
        {
            return;
        }

        CompTzSelect.SelectedValue = tz.DisplayName;
        currTZDispName.InnerText   = tz.DisplayName;
        currTZStdDltName.InnerText =
            tz.DateFallsWithinDaylightSaving(Activity.StartDate) ? tz.DaylightName : tz.StandardName;
        localtimezone.Value        = tz.KeyName;
        lblLocalTimeZone.InnerText = tz.DisplayName;
        localbias.Value            = tz.BiasForGivenDate(Activity.StartDate).ToString();
        localnodltbias.Value       = tz.Bias.ToString();
        chkCurrDltAdjust.Disabled  = (!tz.ObservervesDaylightTime);
        lblCurrDltAdjust.Disabled  = (!tz.ObservervesDaylightTime);
        chkCompDltAdjust.Disabled  = (!tz.ObservervesDaylightTime);
        lblCompDltAdjust.Disabled  = (!tz.ObservervesDaylightTime);
    }
Example #2
0
    private void BuildTimeZoneSelect(TimeZone tz, string clientTimeZone)
    {
        // option...............
        CompTzSelect.Items.Add(new ListItem(tz.DisplayName));
        if (clientTimeZone != tz.KeyName) return;

        CompTzSelect.SelectedValue = tz.DisplayName;
        currTZDispName.InnerText = tz.DisplayName;
        currTZStdDltName.InnerText =
            tz.DateFallsWithinDaylightSaving(Activity.StartDate) ? tz.DaylightName : tz.StandardName;
        localtimezone.Value = tz.KeyName;
        lblLocalTimeZone.InnerText = tz.DisplayName;
        localbias.Value = tz.BiasForGivenDate(Activity.StartDate).ToString();
        localnodltbias.Value = tz.Bias.ToString();
        chkCurrDltAdjust.Disabled = (!tz.ObservervesDaylightTime);
        lblCurrDltAdjust.Disabled = (!tz.ObservervesDaylightTime);
        chkCompDltAdjust.Disabled = (!tz.ObservervesDaylightTime);
        lblCompDltAdjust.Disabled = (!tz.ObservervesDaylightTime);
    }