public Control MakeItemSummmary() { _itemCountLabel = VmUiBuilder.MakeValueLabel(""); // kludge(err) - langauge JwLabel l1 = VmUiBuilder.MakeIdentifierLabel("Items ("); l1.AlignLeft(); JwLabel l2 = VmUiBuilder.MakeFieldLabel(")"); l2.AlignLeft(); JwHorizontalLayout left = new JwHorizontalLayout(); left.AlignBottom(); left.Add(l1); left.Add(_itemCountLabel); left.Add(l2); _itemWeightLabel = VmUiBuilder.MakeValueLabel(""); String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb"; JwLabel weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit); JwHorizontalLayout right = new JwHorizontalLayout(); right.AlignBottom(); right.Add(_itemWeightLabel); right.Add(weightUnitsLabel); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.LeftControl = left; lr.RightControl = right; return lr; }
//# __________ PROTOCOL :: LAYOUT __________ #// public Control GetMainPanel() { ArrayList v = GetExamples(); JwLabel h = new JwLabel("Layout Examples"); _listBox = new JwListBox(); _listBox.DataSource = GetExamples(); _listBox.DisplayMember = "DisplayName"; _listBox.SelectedIndexChanged += new EventHandler(ListBox_SelectedIndexChanged); _textBox = new TextBox(); _textBox.Multiline = true; _textBox.Height = 150; _textBox.ReadOnly = true; if ( v.Count > 0 ) _textBox.Text = ((Example)v[0]).Description; JwHeaderFooterControl b; b = new JwHeaderFooterControl(); b.Body = _listBox; b.Footer = _textBox; JwLeftRightLayout f; f = new JwLeftRightLayout(); f.LeftControl = new JwButton("Quit", new EventHandler(Quit_Click)); f.RightControl = new JwButton("Show", new EventHandler(Show_Click)); JwHeaderFooterControl p; p = new JwHeaderFooterControl(); p.Header = h; p.Body = b; p.Footer = f.CreateEmptyBorder(5); return p; }
public Control GetCommentLabel() { _commentLabel = VmUiBuilder.MakeIdentifierLabel(COMMENT); _commentLabel.AlignRight(); _commentLabel.SetPreferredSize( _commentLabel.GetPreferredSize()); return _commentLabel; }
public override Control GetControl() { Label a; a = new Label(); a.Text = "Standard Label"; Label b; b = new Label(); b.BackColor = Color.Cyan; b.Text = "Standard Label (cyan)"; JwLabel c; c = new JwLabel(); c.Text = "AccuCode Label"; JwLabel d; d = new JwLabel(); d.BackColor = Color.Cyan; d.Text = "AccuCode Label (cyan)"; JwVerticalLayout v = new JwVerticalLayout(); v.Add(a); v.Add(b); v.Add(c); v.Add(d); return v; }
public Control GetLocationCodeLabel() { _locationCodeLabel = VmUiBuilder.MakeValueLabel("XX.XX"); _locationCodeLabel.AlignRight(); _locationCodeLabel.SetPreferredSize( _locationCodeLabel.GetPreferredSize()); return _locationCodeLabel; }
//# __________ PROTOCOL :: CONTSTRUCTOR __________ #// public JwLabeledControl( JwLabel label, Control c, JwPictureBox validationErrorPictureBox) : this(label, null, c, validationErrorPictureBox) { }
//# __________ PROTOCOL :: MAKE (INPUT AREA) __________ #// public void AddFlightLabel(JwLayout p) { JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 1; v.ControlWidth.BeFill(); JwLabeledControl lc; lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetFlight(), VmLanguage.Default.GetChange(), ChangeClicked); v.Add(lc); _flightNumberLabel = (JwLabel)lc.Control; // kludge (err) - language lc = VmUiBuilder.MakeLabeledValueLabel("Departure Date"); v.Add(lc); _departureDateLabel = (JwLabel)lc.Control; lc = VmUiBuilder.MakeLabeledValueLabel("Destination Airport"); v.Add(lc); _destinationLabel = (JwLabel)lc.Control; p.Add(v); }
public void AddFromNestControl(JwLayout p) { _fromNestLabel = AddNestBox( p, // kludge (err) - language "From Nest", ChangeFromNestClicked); }
public void AddToNestControl(JwLayout p) { _toNestLabel = AddNestBox( p, // kludge (err) - language "To Nest", ChangeToNestClicked); }
public void AddFlightLabel(JwLayout p) { JwLabeledControl lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetFlight(), VmLanguage.Default.GetChange(), ChangeClicked); _flightLabel = (JwLabel)lc.Control; p.Add(lc); }
//# __________ PROTOCOL :: INITIALIZE COMPONENTS __________ #// public void InitializeComponents() { _valueLabel = MakeLabel("X X"); _valueLabel.SetPreferredSize( _valueLabel.GetPreferredSize()); if( AlignLeftFlag ) LeftControl = _valueLabel; else RightControl = _valueLabel; }
public Control MakeNestLocationLabel() { _nestLocationLabel = VmUiBuilder.MakeValueLabel(""); return MakeSummaryDataPanel( // kludge (err) language "Nest Location", _nestLocationLabel); }
//# __________ PROTOCOL :: PICTURE BUTTON __________ #// public static JwLabel MakeLabel( Font font, String value) { JwLabel label = new JwLabel(); label.Font = font; label.Text = value; label.AlignCenter(); return label; }
public Control MakeNestArea() { JwVerticalDistributedLayout p = new JwVerticalDistributedLayout(); p.ControlWidth.BeFill(); JwLabeledControl lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetNest()); _nestLabel = (JwLabel)lc.Control; p.Add(lc); return p; }
public Control MakeNestArea() { JwVerticalDistributedLayout p = new JwVerticalDistributedLayout(); p.ControlWidth.BeFill(); JwLabeledControl lc = VmUiBuilder.MakeLabeledSmallValueLabel( // kludge (err) - language "Last Scan"); _scanValueLabel = (JwLabel)lc.Control; p.Add(lc); return p; }
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 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); }
public Control MakeItemSummmary() { _itemCountLabel = VmUiBuilder.MakeValueLabel(""); // kludge(err) - langauge JwLabel piecesLabel = VmUiBuilder.MakeFieldLabel("Nested Items"); JwHorizontalLayout left = new JwHorizontalLayout(); left.AlignBottom(); left.Add(piecesLabel); left.Add(_itemCountLabel); _itemWeightLabel = VmUiBuilder.MakeValueLabel(""); String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb"; JwLabel weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit); JwHorizontalLayout right = new JwHorizontalLayout(); right.AlignBottom(); right.Add(_itemWeightLabel); right.Add(weightUnitsLabel); JwLeftRightLayout lr = new JwLeftRightLayout(); lr.LeftControl = left; lr.RightControl = right; return new JwEmptyBorder(lr, new JwMargin(0, 0, 4, 4)); }
public Control MakeNestListBox() { JwHorizontalLayout h = new JwHorizontalLayout(); h.AlignBottom(); // kludge(err) - langauge JwLabel l1 = VmUiBuilder.MakeIdentifierLabel("Nests"); l1.AlignLeft(); h.Add( VmUiBuilder.MakeIdentifierLabel("Nests (")); _nestCountLabel = VmUiBuilder.MakeValueLabel(""); h.Add(_nestCountLabel); JwLabel l2 = VmUiBuilder.MakeIdentifierLabel("):"); l2.AlignLeft(); h.Add(l2); _nestLB = VmUiBuilder.MakeListBox(); _nestLB.DisplayMember = "DisplayNestName"; JwTopBottomLayout tb = new JwTopBottomLayout(); tb.TopControl = h; tb.CenterControl = _nestLB; return tb; }
public Control MakeFlightControl() { JwLabeledControl flight = VmUiBuilder.MakeLabeledSmallValueLabel("Truck"); _flightLabel = (JwLabel)flight.Control; return flight; }
//# __________ PROTOCOL :: MISC __________ #// public JwLabel AddLabel(String s) { JwLabel e; e = new JwLabel(); e.Text = s; Add(e); return e; }
public Control MakeScanBoxArea() { JwVerticalLayout v = new JwVerticalLayout(); v.ControlWidth.BeFill(); v.Gap = 1; JwLeftRightLayout lr = new JwLeftRightLayout(); JwVerticalLayout v1 = new JwVerticalLayout(); v1.AlignBottom(); // kludge (err) - langauge JwLabel lastScanLabel = VmUiBuilder.MakeFieldLabel("Last Scan"); v1.Add(lastScanLabel); lr.LeftControl = v1; // kludge (err) - langauge lr.RightControl = VmUiBuilder.MakeLinkedLabel("Use Keypad", new System.EventHandler(EnterClicked)); v.Add(lr); _scanLabel = VmUiBuilder.MakeSmallValueLabel(""); _scanLabel.AlignLeft(); JwEmptyBorder emptyBorder = new JwEmptyBorder(_scanLabel, 1); JwSolidBorder sb = new JwSolidBorder( emptyBorder, 1, Color.Black); sb.BackColor = Color.White; v.Add(sb); return v; }
public Control CreateInfoPanel() { // kludge (err) - language // many times... JwVerticalLayout l = new JwVerticalLayout(); l.AutoScroll = true; l.Gap = 1; _versionLabel = AddLabeledLabelControl(l, "Version"); _accountCodeLabel = AddLabeledLabelControl(l, "Account Code"); _userNameLabel = AddLabeledLabelControl(l, "User Name"); _airportCodeLabel = AddLabeledLabelControl(l, "Airport Code"); _airportProfile = AddLabeledLabelControl(l, "Airport Profile"); _lastTransmitDuration = AddLabeledLabelControl(l, "Time Since Last Transmit"); _deviceNameLabel = AddLabeledLabelControl(l, "Device Name"); JwSolidBorder sb = new JwSolidBorder( l, 1, Color.Black); JwMargin m = new JwMargin(); m.Top = 5; m.Bottom = 5; JwEmptyBorder eb = new JwEmptyBorder(sb, m); return eb; }
public Control MakePrimaryInstructions() { String s = GetInstructions(); _instructionLabel = VmUiBuilder.MakeInstructionsLabel(s); _instructionLabel.AlignRight(); return _instructionLabel; }
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; }
//# __________ PROTOCOL :: CONSTRUCTOR __________ #// public VmTagSubpanel(JwLabel linkLabel) { Gap = 0; _linkLabel = linkLabel; InitializeComponents(); }
/* 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 MakeTagValueWrapper() { _valueLabel = VmUiBuilder.MakeTagLabel(" "); _valueLabel.AlignLeft(); return _valueLabel; }
public Control MakeTagLaneControl() { _laneLabel = VmUiBuilder.MakeUnboldedValueLabel(" "); _laneLabel.SetPreferredSize( _laneLabel.GetPreferredSize()); _laneLabel.AlignLeft(); return _laneLabel; }
public Control MakeNestSummary() { JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 0; v.ControlWidth.BeFill(); _nestNameLabel = VmUiBuilder.MakeValueLabel(""); _nestNameLabel.AlignLeft(); v.Add(_nestNameLabel); JwLabel linkLabel = VmUiBuilder.MakeLinkedLabel("Edit Nest", EditNest); linkLabel.AlignRight(); v.Add(linkLabel); return v; }