public static DialogResult ShowSearch(MyContext context, out Contact contact)
        {
            var frm = new frmSearchContacts();

            frm.Context = context;

            frm.btnNew.Visible    = false;
            frm.btnEdit.Visible   = false;
            frm.btnDelete.Visible = false;


            var dialogResult = frm.ShowDialog();

            if (dialogResult == DialogResult.Cancel)
            {
                contact = null;
            }
            else
            {
                contact = (Contact)frm.grd.SelectedRows[0].DataBoundItem;
            }

            frm.Dispose();
            return(dialogResult);
        }
        public static void ShowEdit()
        {
            var frm = new frmSearchContacts();

            frm.btnSelect.Visible = false;


            frm.Show();
        }