private void ShowPermit() { Appoint appoint = (Appoint)bindingSourceAppoints.Current; Permit permit = appoint.GetPermit(database); permit.Print(); }