public static DialogResult MaskDialog(this Form form) { var maskForm = new MaskForm(form); return(maskForm.ShowDialog()); }