void form_ItemSaved(object sender, EventArgs e)
        {
            MaterialPermitForm form = (MaterialPermitForm)sender;

            documentToSelect = form.Document;
            ForceRefresh();
        }
        private void ShowDocumentForm(MaterialPermit document)
        {
            MaterialPermitForm form = new MaterialPermitForm(MdiParent, Database, document);

            form.ItemSaved += new EventHandler(form_ItemSaved);
            form.Show();
        }