Example #1
0
 //# __________ PROTOCOL :: CONTSTRUCTOR __________ #//
 public JwLabeledControl(
     JwLabel label,
     Control c,
     JwPictureBox validationErrorPictureBox)
     : this(label, null, c, validationErrorPictureBox)
 {
 }
Example #2
0
 //# __________ PROTOCOL :: PICTURE BOX __________ #//
 public static JwPictureBox MakePictureBox(Bitmap bitmap)
 {
     JwPictureBox pb = new  JwPictureBox();
     pb.Image = bitmap;
     pb.Size = bitmap.Size;
     return pb;
 }
Example #3
0
 public JwLabeledControl(
     JwLabel label,
     JwLabel linkedLabel,
     Control c,
     JwPictureBox validationErrorPictureBox)
     : base(0)
 {
     Label = label;
     LinkLabel = linkedLabel;
     Control = c;
     PictureBox = validationErrorPictureBox;
     JwVerticalLayout p = new JwVerticalLayout();
     p.ControlWidth.BeFill();
     p.Gap = 0;
     p.AlignLeft();
     p.Add(MakeLabelPanel());
     p.Add(c);
     Add(p);
 }
Example #4
0
 public void SetTagType( JwPictureBox pb)
 {
     _bottomLayout.LeftControl = pb;
 }
 //# __________ PROTOCOL :: PUBLIC (CREATION)__________ #//
 public void Add(
     Control c,
     int tabOrderIndex,
     JwInputControlModel.GetValueDelegateType getValueDelegate,
     JwInputControlModel.ValidateDelegateType validateDelegate,
     JwPictureBox validationPictureBox,
     JwVisibilityWrapper validationVisibilityWrapper)
 {
     JwInputControlModel m = new JwInputControlModel();
     m.Control = c;
     m.GetValueDelegate = getValueDelegate;
     m.ValidateDelegate = validateDelegate;
     m.ValidationPictureBox = validationPictureBox;
     m.ValidationVisibilityWrapper = validationVisibilityWrapper;
     _controls.Add(m);
     _tabOrder.Add(c, tabOrderIndex);
     validationPictureBox.Click += new EventHandler(ValidationButtonClick);
 }