Ejemplo n.º 1
0
        public void my_account_prayer_session_helper(DataRow r, Hashtable h)
        {
            //-- format = x hours, x minutes, x seconds
            DateTime startTime        = LiftTime.toUserTime(Convert.ToDateTime(r["start_time"]));
            DateTime endTime          = LiftTime.toUserTime(Convert.ToDateTime(r["end_time"]));
            TimeSpan durationTimeSpan = endTime - startTime;

            h["display_start_time"] = startTime.ToString("dddd MMMM dd, yyyy h:mm tt");
            h["total_time"]         = durationTimeSpan.Hours.ToString() + " hours, " + durationTimeSpan.Minutes.ToString() + " minutes, " + durationTimeSpan.Seconds.ToString() + " seconds";
        }
Ejemplo n.º 2
0
        public void get_summary_info(ref string _title, ref string _description, ref string _from, ref string _requestType, ref string _aboutTime)
        {
            _title       = title;
            _description = description;
            _from        = from;

            RequestType rt = new RequestType();

            rt.id.Value = requesttype_id.Value;
            rt          = rt.doSingleObjectQuery <RequestType>("select");


            _requestType = rt.title;

            _aboutTime = LiftTime.aboutTime(last_action);
        }