Exemplo n.º 1
0
        /// <summary>
        /// Returns a list of EventStatusVw objects
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(EventStatusVwViewModel Model)
        {
            Db db = new Db(DbServices.ConnectionString);

            Model.List = EventStatusVwServices.List(db);
            return(View(Model));
        }
Exemplo n.º 2
0
        private void FormEventStatusView_Load(object sender, EventArgs e)
        {
            if (dataSource == null)
            {
				DateTime dt = DateTime.Now;
				DataSource = EventStatusVwServices.List(new Db(DbServices.ConnectionString));
				slblEllapsedTimeValue.Text = (DateTime.Now.Subtract(dt).TotalMilliseconds / 1000).ToString();
            }
        }