private void btnCreateTranslation_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var uow         = view.Session as UnitOfWork;
            var translation = new Translation(uow)
            {
                BookType           = TheBookType.ChurchFathersLetter,
                Catolic            = false,
                ChapterPsalmString = "Psalm",
                ChapterString      = "Rozdział",
                Description        = String.Empty,
                DetailedInfo       = String.Empty,
                Introduction       = String.Empty,
                Language           = Language.Polish,
                Recommended        = false,
                Name = String.Empty,
                Type = TranslationType.Default
            };

            var frm = new TranslationEditForm(translation)
            {
                MdiParent = this.MdiParent
            };

            frm.ObjectSaved += new EventHandler(delegate(object _sender, EventArgs args) {
                LoadData();

                var idx = gridView.LocateByValue("Id", frm.Object.Oid);
                gridView.FocusedRowHandle = idx;
                gridView.SelectRow(idx);
            });

            frm.Show();
        }
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            var selected = gridView.GetFocusedRow() as ViewRecord;

            if (selected.IsNotNull())
            {
                var id  = selected["Id"].ToInt();
                var frm = new TranslationEditForm(id, view.Session as UnitOfWork)
                {
                    MdiParent = this.MdiParent
                };
                frm.ObjectSaved += new EventHandler(delegate(object _sender, EventArgs args) {
                    LoadData();

                    var idx = gridView.LocateByValue("Id", id);
                    gridView.FocusedRowHandle = idx;
                    gridView.SelectRow(idx);
                });
                frm.Show();
            }
        }