Пример #1
0
        public override Control GetControl()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            JwSolidBorder b;

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = false;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignLeft();
            b.ControlLayout.AlignTop();
            b.AddSolidBorder(Color.Red).AddLabel("top left");
            v.Add(b);

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = false;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignCenter();
            b.ControlLayout.AlignBottom();
            b.AddSolidBorder(Color.Red).AddLabel("bottom center");
            v.Add(b);

            b = new JwSolidBorder(2);
            b.SetPreferredSize(100, 50);
            b.ControlLayout.HorizontalFill = true;
            b.ControlLayout.VerticalFill = false;
            b.ControlLayout.AlignMiddle();
            b.AddSolidBorder(Color.Red).AddLabel("hFill middle");
            v.Add(b);

            return v;
        }
Пример #2
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "This device contains untransmitted");
            AddText( vp1, "data and scans.  You are strongly");
            AddText( vp1, "advised to transmit this data");
            AddText( vp1, "now.  If not transmitted, this data");
            AddText( vp1, "will be lost.");

            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "Would you like to transmit this");
            AddText( vp2, "data?");

            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignMiddle();
            vp.AlignCenter();
            vp.Gap = 5;

            vp.Add(vp1);

            vp.Add(vp2);

            return vp;
        }
Пример #3
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignMiddle();
            vp.AlignCenter();
            // kludge (err) language
            String value1Text =
                "There was a problem"+
                "\r\n" +
                "connecting to the" +
                "\r\n" +
                "server.";
            String value2Text =
                "Host Name: " + VmProperties.Default.GetMessageHostName() +
                "\r\n" +
                "Request Path: " + VmUtility.GetRequestPath() +
                "\r\n" +
                "Port: " + VmProperties.Default.GetMessageHostPort();

            JwLabel value1 = VmUiBuilder.MakeValueLabel(value1Text);
            value1.AlignCenter();
            vp.Add(value1);
            JwLabel value2 = VmUiBuilder.MakeIdentifierLabel(value2Text);
            value2.AlignCenter();
            vp.Add(value2);
            return vp;
        }
Пример #4
0
        //# __________ 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);
        }
Пример #5
0
        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;
        }
Пример #6
0
        public void AddUldControl(JwLayout p)
        {
            _uldTypeVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox();
            _uldNumberVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox();
            _uldOwnerVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox();

            JwVerticalLayout v = new JwVerticalLayout();
            v.Gap = 0;
            v.ControlWidth.BeFill();
            v.Add(MakeUldLabel());
            v.Add(MakeUldWidgets());

            p.Add(v);
        }
Пример #7
0
 public Control MakeInputArea()
 {
     JwVerticalLayout p = new JwVerticalLayout();
     p.ControlWidth.BeFill();
     p.Add( MakeWeightTB());
     return p;
 }
Пример #8
0
        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 void AddNote(JwVerticalLayout p, params String[] sa)
 {
     foreach( String value in sa )
     {
         JwLabel label = VmUiBuilder.MakeIdentifierLabel(value);
         label.AlignCenter();
         p.Add(label);
     }
 }
Пример #10
0
        public override Control GetControl()
        {
            Font font = new Font("Arial", 8F, System.Drawing.FontStyle.Bold);
            Label a;
            a = new Label();
            a.Text = "Standard Label";
            a.Font = font;

            JwPanelLabel c;
            c = new JwPanelLabel();
            c.Text = "AccuCode Label";
            c.Font = font;

            JwVerticalLayout v = new JwVerticalLayout();
            v.Add(a);
            v.Add(c);
            return v;
        }
Пример #11
0
 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;
 }
Пример #12
0
 public JwLabel AddNestBox(
     JwLayout layout,
     String labelName,
     EventHandler ev)
 {
     JwLeftRightLayout lr = new JwLeftRightLayout();
     lr.LeftControl = VmUiBuilder.MakeFieldLabel(labelName);
     // kludge (err) - language
     lr.RightControl = VmUiBuilder.MakeLinkedLabel("Change", ev);
     JwLabel valueLabel = VmUiBuilder.MakeSmallValueLabel("");
     JwVerticalLayout p = new JwVerticalLayout();
     p.Gap = 1;
     p.ControlWidth.BeFill();
     p.Add(lr);
     p.Add(valueLabel);
     layout.Add(p);
     return valueLabel;
 }
Пример #13
0
 public JwLayout MakeAccountChooser()
 {
     _accountCB = VmUiBuilder.MakeComboBox(0);
     JwLayout lc = VmUiBuilder.MakeLabeledControl( VmLanguage.Default.GetAccount(), _accountCB);
     JwVerticalLayout vp = new JwVerticalLayout();
     vp.ControlWidth.BeFill();
     vp.AlignMiddle();
     vp.Add(lc);
     return vp;
 }
Пример #14
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);
 }
Пример #15
0
 public Control GetCenterControl()
 {
     JwVerticalLayout p = new JwVerticalLayout();
     p.ControlWidth.BeFill();
     p.ControlHeight.BeFill();
     _nestLB = VmUiBuilder.MakeListBox();
     _nestLB.DisplayMember = "DisplayString";
     _inputControlManager.Add(_nestLB, 1);
     p.Add(_nestLB);
     return p;
 }
Пример #16
0
 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;
 }
Пример #17
0
        public override Control GetControl()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            v.AddLabel("line one");
            v.AddLabel("line two");
            v.AddLabel("line three... and some extra text.");
            v.AddLabel("line four");

            JwVerticalLayout p = new JwVerticalLayout();
            p.Add(v);
            return p;
        }
Пример #18
0
        public override Control GetControl()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            JwTextBox e;

            e = new JwTextBox();
            e.SampleText = "W";
            e.RowCount = 4;
            e.Multiline = true;
            e.Text = "rows=4\r\nsample='W'\r\nline3\r\nline4";
            v.Add(e);

            e = new JwTextBox();
            e.SampleText = "W";
            e.RowCount = 4;
            e.Multiline = true;
            e.ScrollBars = ScrollBars.Vertical;
            e.Text = "rows=4\r\nsample='W'\r\nline3\r\nline4\r\nline5";
            v.Add(e);

            return v;
        }
        public override Control GetControl()
        {
            JwVerticalLayout e = new JwVerticalLayout();
            JwButton showButton, hideButton;

            e = new JwVerticalLayout();

            showButton = new JwButton();
            showButton.Text = "Show";
            showButton.Click += new EventHandler(ShowLabel);

            hideButton = new JwButton();
            hideButton.Text = "Hide";
            hideButton.Click += new EventHandler(HideLabel);
            wrapper = new JwVisibilityWrapper(new JwLabel("dog"), true);

            e.Add(showButton);
            e.Add(wrapper);
            e.Add(hideButton);

            return e;
        }
 public JwLayout MakeProfileChooser()
 {
     _profileCB = VmUiBuilder.MakeComboBox(0);
     JwLayout lc = VmUiBuilder.MakeLabeledControl(
         // kludge (err) - langauge
         "Airport Mode",
         _profileCB);
     JwVerticalLayout vp = new JwVerticalLayout();
     vp.ControlWidth.BeFill();
     vp.AlignMiddle();
     vp.Add(lc);
     return vp;
 }
        public Control MakeTextArea()
        {
            JwVerticalLayout p = new JwVerticalLayout();
            p.ControlWidth.BeFill();
            p.ControlHeight.BeFill();
            _textArea = new JwTextBox();
            _textArea.Multiline = true;
            _textArea.ReadOnly = true;
            _textArea.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            _textArea.AcceptsReturn = true;
            p.Add(_textArea);

            return p;
        }
        public override Control GetControl()
        {
            JwRowLayout c = new JwRowLayout();
            JwVerticalLayout v;

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("default");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignCenter();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align center");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignRight();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align right");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignBottom();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align bottom");
            c.AddSolidBorder().Add(v);

            JwVerticalLayout e;
            e = new JwVerticalLayout();
            e.Add(c);
            return e;
        }
Пример #23
0
        //# __________ PROTOCOL :: PROTECTED __________ #//
        public JwLeftRightLayout MakeSplashPanel()
        {
            JwPictureBox leftImage = VmUiBuilder.MakePictureBox(
                VmImageManager.Default.GetSplashLeftImage());
            JwPictureBox rightImage = VmUiBuilder.MakePictureBox(
                VmImageManager.Default.GetSplashRightImage());
            JwLabel versionLabel = VmUiBuilder.MakeNoteLabel("(v) " + VmConstant.VERSION);
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignBottom();
            vp.AlignLeft();
            vp.Add(versionLabel);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = leftImage;
            lr.CenterControl = vp;
            lr.RightControl = rightImage;
            return lr;
        }
Пример #24
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignMiddle();
            vp.AlignCenter();
            // kludge (err) language
            String valueText =
                "The entered user is not configured" +
                "\r\n" +
                "to work at any airports known to." +
                "\r\n" +
                "this device.";

            JwLabel value = VmUiBuilder.MakeIdentifierLabel(valueText);
            value.AlignCenter();
            vp.Add(value);
            return vp;
        }
Пример #25
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignMiddle();
            vp.AlignCenter();
            // kludge (err) language
            String valueText =
                "The Clock on this mobile device" +
                "\r\n" +
                "does not reflect the current time." +
                "\r\n" +
                "Please have an administrator fix " +
                "\r\n" +
                "this problem to continue.";

            JwLabel value = VmUiBuilder.MakeIdentifierLabel(valueText);
            value.AlignCenter();
            vp.Add(value);
            return vp;
        }
Пример #26
0
 public JwLayout MakeText()
 {
     JwVerticalLayout vp = new JwVerticalLayout();
     vp.ControlWidth.BeFill();
     vp.AlignMiddle();
     vp.AlignCenter();
     // kludge (err) language
     String valueText =
         "This mobile device has not been" +
         "\r\n" +
         "configured.  It is missing a valid" +
         "\r\n" +
         "Account Configuration File" +
         "\r\n" +
         "\r\n" +
         "Please contact an administrator.";
     JwLabel value = VmUiBuilder.MakeIdentifierLabel(valueText);
     value.AlignCenter();
     vp.Add(value);
     return vp;
 }
Пример #27
0
 public JwLayout MakeText()
 {
     JwVerticalLayout vp = new JwVerticalLayout();
     vp.ControlWidth.BeFill();
     vp.AlignMiddle();
     vp.AlignCenter();
     // kludge (err) language
     String valueText =
         "The software is recovering from" +
         "\r\n" +
         "an unexpected error that might." +
         "\r\n" +
         "lead to data corruption.  You must" +
         "\r\n" +
         "transmit now to avoid loosing scan" +
         "\r\n" +
         "data.";
     JwLabel value = VmUiBuilder.MakeIdentifierLabel(valueText);
     value.AlignCenter();
     vp.Add(value);
     return vp;
 }
        public override Control GetControl()
        {
            JwRowLayout c = new JwRowLayout();
            JwVerticalLayout v;

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("default");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.ControlWidth.BeFill();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("fill width");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.ControlHeight.BeFill();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("fill height");
            c.AddSolidBorder().Add(v);

            JwVerticalLayout e;
            e = new JwVerticalLayout();
            e.Add(c);
            return e;
        }
Пример #29
0
        public override Control GetControl()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            JwTextBox e;

            e = new JwTextBox();
            e.Text = "default";
            v.Add(e);

            e = new JwTextBox();
            e.ColumnCount = 5;
            e.SampleText = "88888";
            e.Text = "12345";
            v.Add(e);

            e = new JwTextBox();
            e.SampleText = "8";
            e.Text = "sample='8'";
            v.Add(e);

            e = new JwTextBox();
            e.SampleText = "W";
            e.Text = "sample='W'";
            v.Add(e);

            e = new JwTextBox();
            e.SampleText = "W";
            e.Font = new Font("Courier New", 9F, FontStyle.Regular);
            e.Text = "Courier New";
            v.Add(e);

            e = new JwTextBox();
            e.SampleText = "W";
            e.Font = new Font("Lucida Console", 9F, FontStyle.Regular);
            e.Text = "Lucida Console";
            v.Add(e);

            return v;
        }
Пример #30
0
 public Panel MakeTagSubpanel()
 {
     JwVerticalLayout v = new JwVerticalLayout();
     v.Gap = 0;
     v.ControlWidth.BeFill();
     v.AlignMiddle();
     v.Add(MakeTagValueWrapper());
     v.Add(MakeLaneAndWeightControl());
     v.Add(MakeBottomControl());
     //            v.Add(MakeTagLaneWrapper());
     //            v.Add(MakeTagWeightWrapper());
     return v;
 }