public Control MakeNestPanel() { _subpanel = MakeNestSubpanel(); _subpanel.BackColor = Color.White; JwEmptyBorder emptyBorder = new JwEmptyBorder(_subpanel, 1); JwSolidBorder solidBorder = new JwSolidBorder(emptyBorder, 1, Color.Black); JwVerticalLayout v = new JwVerticalLayout(); v.ControlWidth.BeFill(); v.AlignLeft(); v.Gap = 0; JwLabel nestIdentifier = VmUiBuilder.MakeFieldLabel(VmLanguage.Default.GetNest()); JwVerticalLayout nestIdentifierPanel = new JwVerticalLayout(); // nestIdentifierPanel.ControlWidth.BeFill(); nestIdentifierPanel.AlignBottom(); nestIdentifierPanel.Add(nestIdentifier); JwLeftRightLayout lr = new JwLeftRightLayout(); // lr.LeftControl = nestIdentifierPanel; // lr.RightControl = MakeNestNamePanel(); lr.LeftControl= nestIdentifier; lr.RightControl = MakeNestNamePanel(); v.Add(lr); v.Add(solidBorder); return v; }
public Control MakeOkButton() { JwButton b = VmUiBuilder.MakeOkButton( new EventHandler(OkButtonClick)); Control c = new JwEmptyBorder( b, new JwMargin(0,0,0,4)); JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Add(c); return p; }
// kludge (err) - refactor into seperate panel public Control MakeDestinationAirportArea() { Control comboBox = MakeDestinationAirportCB(); Control textBox = MakeDestinationAirportTB(); Control c1 = new JwEmptyBorder(comboBox, 2); Control c2 = new JwEmptyBorder(textBox, 2); JwLeftRightLayout v = new JwLeftRightLayout(); v.LeftControl = c1; v.CenterControl = c2; return new JwSolidBorder(v, 1); }
public Control MakeTagPanel() { _subpanel = MakeTagSubpanel(); _subpanel.BackColor = Color.White; JwEmptyBorder emptyBorder = new JwEmptyBorder(_subpanel, 1); emptyBorder.BackColor = Color.White; JwSolidBorder solidBorder = new JwSolidBorder(emptyBorder, 1, Color.Black); Control c = VmUiBuilder.MakeLabeledControl( VmLanguage.Default.GetTag(), solidBorder, _linkLabel); return c; }
public Control MakeOkButton() { JwButton b = VmUiBuilder.MakeOkButton( new EventHandler(OkClicked)); Control c = new JwEmptyBorder( b, new JwMargin(0,0,0,VmUiUtility.ScaleToResolution(4))); JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Add(c); _inputControlManager.AddButton(b, 2, HandleOk); return p; }
public Control MakeOkButton() { JwButton b = VmUiBuilder.MakeOkButton( new EventHandler(OkClicked)); b.Text = VmLanguage.Default.GetSynchronize(); Control c = new JwEmptyBorder( b, new JwMargin(0,0,0,4)); JwVerticalLayout p = new JwVerticalLayout(); p.ControlWidth.BeFill(); p.Add(c); _inputControlManager.AddButton(b, 2, HandleOk); return p; }
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 MakeAccountCodePanel() { if( ! VmAccountData.Default.HasAccount() ) return null; if( ! VmProperties.Default.ShouldShowAccountCode() ) return null; Color darkishGray = Color.FromArgb(82,82,82); Color borderColor = darkishGray; String value = VmAccountData.Default.Account.Code.ToUpper(); JwTopBottomLayout p = new JwTopBottomLayout(); Font font = new System.Drawing.Font("Arial", 12f, System.Drawing.FontStyle.Bold); JwLabel label = VmUiUtility.MakeLabel(font, value); label.AlignCenter(); label.ForeColor = Color.White; p.BottomControl = label; JwMargin margin = new JwMargin(2, 2, 0, 0); JwEmptyBorder emptyBorder = new JwEmptyBorder(p, margin); JwSolidBorder border = new JwSolidBorder( emptyBorder, 1, borderColor); border.BackColor = VmUiConstants.ORANGISH_BACK_COLOR; return border; }
public Control CreateBottomControl() { JwButton b = VmUiBuilder.MakeButton( VmLanguage.Default.GetOk(), new System.EventHandler(OkClicked)); b.SetPreferredSize( new Size(0,VmUiUtility.ScaleToResolution(VmUiBuilder.GetButtonHeight() + 5))); JwMargin m = new JwMargin(); m.Bottom = VmUiUtility.ScaleToResolution(5); JwEmptyBorder eb = new JwEmptyBorder(b, m); return eb; }
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 MakeTagPanel() { JwLabel useKeyboardLabel = VmUiBuilder.MakeLinkedLabel( VmLanguage.Default.GetUseKeyboard(), UseKeyboardClicked); Panel subpanel = MakeTagSubpanel(); subpanel.BackColor = Color.White; JwEmptyBorder emptyBorder = new JwEmptyBorder(subpanel, 1); emptyBorder.BackColor = Color.White; JwSolidBorder solidBorder = new JwSolidBorder(emptyBorder, 1, Color.Black); Control c = VmUiBuilder.MakeLabeledControl( VmLanguage.Default.GetNest(), solidBorder, useKeyboardLabel); JwVerticalDistributedLayout v = new JwVerticalDistributedLayout(); v.ControlWidth.BeFill(); v.Add(c); return v; }
public Control MakeControl( int comboBoxWidth, int textBoxColumnCount) { Control comboBox = MakeValuesCB(comboBoxWidth); Control textBox = MakeFinderTB(textBoxColumnCount); Control c1 = new JwEmptyBorder(comboBox, 2); Control c2 = new JwEmptyBorder(textBox, 2); JwLeftRightLayout v = new JwLeftRightLayout(); v.LeftControl = c1; v.CenterControl = c2; return new JwSolidBorder(v, 1); }
public Control MakeOkButton() { JwTwinButton tb = VmUiBuilder.MakeOkCancelTwinButton( OkClicked, CancelClicked); Control eb = new JwEmptyBorder( tb, new JwMargin(0,0,0,4)); _inputControlManager.AddButton(tb.LeftButton, 2, HandleOk); return eb; }