Ejemplo n.º 1
0
        void cb_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox cb = (CheckBox)sender;

            if (cb.ID.StartsWith("PlatformOverrideCheckBoxId"))
            {
                PlatformOverride po = GetPlatformOverride(int.Parse(cb.ID.Substring(27)));
                po.UseNextBusFeed = cb.Checked;
                // po.OverrideUntil = System.DateTime.Now + NextStopTimeOnThisPlatform;
                dc.SubmitChanges();
            }
        }
Ejemplo n.º 2
0
        void dl_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList dl = (DropDownList)sender;

            if (dl.ID.StartsWith("PlatformOverrideId"))
            {
                PlatformOverride po = GetPlatformOverride(int.Parse(dl.ID.Substring(19)));
                po.Platform = dl.SelectedValue;
                // Update The UpdateUntil Value To Be When The Next Departure Time Is Happening.
                Int32 times = GetNextScheduleTime(GetDaysEnumeration());
                po.OverrideUntil = MinutesToDate(times.ToString());
                dc.SubmitChanges();
            }
        }
Ejemplo n.º 3
0
 partial void DeletePlatformOverride(PlatformOverride instance);
Ejemplo n.º 4
0
 partial void UpdatePlatformOverride(PlatformOverride instance);
Ejemplo n.º 5
0
 partial void InsertPlatformOverride(PlatformOverride instance);