Пример #1
0
        public void Update(object entity)
        {
            //Console.WriteLine("success update");
            //this.dataGridView1.DataSource = null;
            for (int i = 0; i < pager.Lists.Count; i++)
            {
                if (SimpleOrmOperator.EntityIsEqual(entity, pager.Lists[i]))
                {
                    pager.Lists.RemoveAt(i);
                    pager.Lists.Insert(i, entity);
                    break;
                }
            }
            bindingSource.ResetBindings(false);
            //this.dataGridView1.DataSource = pager.Lists;

            //
            // throw new Exception("The method or operation is not implemented.");
        }