public void Init(RepositoryItemComboBox repositoryItemComboBox, string editMask, EditMaskType maskType) {
     if (!string.IsNullOrEmpty(editMask)) {
         repositoryItemComboBox.Mask.EditMask = editMask;
         if (maskType == EditMaskType.RegEx) {
             repositoryItemComboBox.Mask.UseMaskAsDisplayFormat = false;
             repositoryItemComboBox.Mask.MaskType = MaskType.RegEx;
         }
         else {
             repositoryItemComboBox.Mask.MaskType = MaskType.Simple;
         }
     }
 }
 public void Init(string editMask, EditMaskType maskType)
 {
     if (!string.IsNullOrEmpty(editMask))
     {
         Mask.EditMask = editMask;
         switch (maskType)
         {
             case EditMaskType.RegEx:
                 Mask.UseMaskAsDisplayFormat = false;
                 Mask.MaskType = MaskType.RegEx;
                 break;
             default:
                 Mask.MaskType = MaskType.Simple;
                 break;
         }
     }
 }