BlackForm.cs: minor refractoring