private void AddDocs() { AdminAddDialog addDialog = new AdminAddDialog(); addDialog.ShowDialog(); if (addDialog.DialogResult == true) { if (!string.IsNullOrEmpty(repo.InsertDocument(addDialog.Entity))) { GetDocs(); } } }