private void btnAddArticle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var frm = new ArticleEditorForm(new Article(Uow)
            {
                AuthorName = Environment.UserName,
                Date       = DateTime.Now,
                Lead       = "Główna myśl...",
                Subject    = "Tytuł ..."
            });

            frm.IconOptions.SvgImage = e.Item.ImageOptions.SvgImage;
            frm.MdiParent            = this.MdiParent;
            frm.Show();
        }
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            var record = gridView.GetFocusedRow() as ViewRecord;

            if (record.IsNotNull())
            {
                var article = new XPQuery <Article>(Uow).Where(x => x.Oid == record["Id"].ToInt()).FirstOrDefault();
                if (article.IsNotNull())
                {
                    var frm = new ArticleEditorForm(article);
                    frm.IconOptions.SvgImage = btnAddArticle.ImageOptions.SvgImage;
                    frm.MdiParent            = this.MdiParent;
                    frm.Show();
                }
            }
        }