public void AddLabeledTextBox(
     JwLabeledControl lc,
     int tabOrderIndex)
 {
     Add(
         lc,
         tabOrderIndex);
 }
 public void AddLabeledTextBox(
     JwLabeledControl lc,
     int tabOrderIndex,
     JwInputControlModel.ValidateDelegateType validateDelegate)
 {
     Add(
         (JwTextBox)lc.Control,
         tabOrderIndex,
         JwTextBox.GetValue,
         validateDelegate,
         lc.PictureBox,
         lc.VisiblityWrapper);
 }
 public void AddLabeledComboBox(
     JwLabeledControl lc,
     int tabOrderIndex,
     String modelName,
     String fieldName,
     bool isRequiredFlag)
 {
     JwInputControlModel.ValidateDelegateType validateDelType = null;
     if( isRequiredFlag ) validateDelType = GetValidateComboBoxRequiredDelegate(modelName, fieldName);
     Add(
         (ComboBox)lc.Control,
         tabOrderIndex,
         JwComboBox.GetValue,
         validateDelType,
         lc.PictureBox,
         lc.VisiblityWrapper);
 }
 public void AddLabeledComboBox(
     JwLabeledControl lc,
     int tabOrderIndex,
     String modelName,
     String fieldName)
 {
     AddLabeledComboBox(
         lc,
         tabOrderIndex,
         modelName,
         fieldName,
         true);
 }
Beispiel #5
0
 public static JwLabeledControl MakeLabeledControl(
     String value,
     Control c,
     JwLabel linkLabel)
 {
     JwLabel label = MakeFieldLabel(value);
     JwPictureBox validationErrorPictureBox = (JwPictureBox) VmUiUtility.MakePictureBox(VmImageManager.Default.GetValidationErrorImage());
     JwLabeledControl p = new JwLabeledControl(label, linkLabel, c, validationErrorPictureBox);
     return p;
 }
Beispiel #6
0
 public static JwLabeledControl MakeLabeledControl(String value, Control c)
 {
     JwLabel label = MakeFieldLabel(value);
     JwPictureBox validationErrorPictureBox = MakeValidationErrorPictureBox();
     JwLabeledControl p = new JwLabeledControl(label, c, validationErrorPictureBox);
     return p;
 }