private bool IsShown(FormField <TItem> field, FormModes?mode = null)
 {
     if (mode == null)
     {
         mode = Form?.Mode;
     }
     return((mode == FormModes.Create && field.ShowInCreate(Form?.GetItemWithUpdates())) ||
            (mode == FormModes.Edit && field.ShowInEdit(Form?.GetItemWithUpdates())) ||
            (mode == FormModes.Delete && field.ShowInDelete(Form?.GetItemWithUpdates())));
 }