public Control GetLocationCodeLabel() { _locationCodeLabel = VmUiBuilder.MakeValueLabel("XX.XX"); _locationCodeLabel.AlignRight(); _locationCodeLabel.SetPreferredSize( _locationCodeLabel.GetPreferredSize()); return _locationCodeLabel; }
public Control GetCommentLabel() { _commentLabel = VmUiBuilder.MakeIdentifierLabel(COMMENT); _commentLabel.AlignRight(); _commentLabel.SetPreferredSize( _commentLabel.GetPreferredSize()); return _commentLabel; }
public Control MakeNestNamePanel() { _nameLabel = VmUiBuilder.MakeSmallValueLabel("XXXXXXXXXXXXXXXX"); _nameLabel.AlignRight(); JwVerticalLayout v = new JwVerticalLayout(); // v.ControlWidth.BeFill(); v.AlignBottom(); v.AlignRight(); v.Add(_nameLabel); // return v; return _nameLabel; }
/* public Control MakeTagLaneWrapper() { return MakeTagLaneControl(); } */ public Control MakeTagWeightControl() { _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXX"); _weightLabel.SetPreferredSize( _weightLabel.GetPreferredSize()); _weightLabel.AlignRight(); String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb"; _weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit); JwHorizontalLayout weightPanel = new JwHorizontalLayout(); weightPanel.AlignBottom(); weightPanel.Gap = 2; weightPanel.Add(_weightLabel); weightPanel.Add(_weightUnitsLabel); return weightPanel; }
public Control MakeNestSubpanel() { JwHorizontalLayout left = new JwHorizontalLayout(); left.Gap = 1; left.AlignBottom(); _pieceCountLabel = VmUiBuilder.MakeValueLabel("XXXXXXXX"); _pieceCountLabel.SetPreferredSize(_pieceCountLabel.GetPreferredSize()); _pieceCountLabel.AlignLeft(); String piecesText = VmLanguage.Default.GetPieces() + ":"; JwLabel pieceUnitLabel = VmUiBuilder.MakeIdentifierLabel(piecesText); left.Add(pieceUnitLabel); left.Add(_pieceCountLabel); String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb"; _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXXXX"); _weightLabel.SetPreferredSize(_weightLabel.GetPreferredSize()); _weightLabel.AlignRight(); JwLabel weightUnitLabel = VmUiBuilder.MakeIdentifierLabel(unit); JwHorizontalLayout right = new JwHorizontalLayout(); right.Gap = 1; right.AlignBottom(); right.Add(_weightLabel); right.Add(weightUnitLabel); JwLeftRightLayout p = new JwLeftRightLayout(); p.LeftControl = left; p.RightControl = right; _statiticsVisibilityWrapper = new JwVisibilityWrapper(p, true); return _statiticsVisibilityWrapper; }
public Control MakePrimaryInstructions() { String s = GetInstructions(); _instructionLabel = VmUiBuilder.MakeInstructionsLabel(s); _instructionLabel.AlignRight(); return _instructionLabel; }