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;
        }
        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;
        }
        public override Control GetControl()
        {
            JwLabel x;
            JwVerticalLayout e = new JwVerticalLayout();
            e.ControlWidth.BeEqual();
            e.AlignCenter();
            e.AlignMiddle();

            e.AddRaisedBorder().AddLabel("AcBevelBorder (raised)");
            e.AddLoweredBorder().AddLabel("AcBevelBorder (lowered)");
            x = e.AddRaisedBorder().AddLabel("AcBevelBorder (toggle)");
            x.MouseUp   += new MouseEventHandler(Label_MouseUp);
            x.MouseDown += new MouseEventHandler(Label_MouseDown);

            e.AddGap(20);
            e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (raised)");
            e.AddThinLoweredBorder().AddLabel("AcThinBevelBorder (lowered)");
            x = e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (toggle)");
            x.MouseUp   += new MouseEventHandler(Label_MouseUp);
            x.MouseDown += new MouseEventHandler(Label_MouseDown);

            e.AddGap(20);
            e.AddSolidBorder(3, Color.Red).AddEmptyBorder(5).AddSolidBorder().AddLabel("solid + empty + solid(3, red)");

            return e;
        }
 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;
 }
 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 override Control GetControl()
        {
            JwVerticalLayout e = new JwVerticalLayout();
            e.ControlWidth.BeEqual();
            e.AlignCenter();
            e.AlignMiddle();

            e.AddBumpBorder().AddLabel("bump");
            e.AddGrooveBorder().AddLabel("groove");

            e.AddGap(20);
            e.AddThinBumpBorder().AddLabel("thin bump");
            e.AddThinGrooveBorder().AddLabel("thin groove");

            return e;
        }
        public JwLayout MakeWarningText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.Gap = 0;
            vp.AlignMiddle();
            vp.AlignCenter();

            // kludge (err) language --- lots of them
            AddNote(
                vp,
                "Would you like to set up an",
                "impromptu nest?  The impromptu",
                "nest is used to store any found",
                "mail that is going to an unexpected",
                "destination."
            );
            return vp;
        }
        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;
        }
        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;
        }
 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;
 }
 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;
 }
Exemple #12
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;
 }
Exemple #13
0
 public static Panel MakePictureButton(Bitmap bitmap, String value, EventHandler ev)
 {
     JwVerticalLayout p = new JwVerticalLayout();
     p.Gap = 0;
     p.AlignMiddle();
     p.AlignCenter();
     JwPictureButton pb = VmUiUtility.MakePictureButton(bitmap, ev);
     p.Add(pb);
     Font font = new Font("Arial", 8F, System.Drawing.FontStyle.Regular);
     JwLabel label = VmUiUtility.MakeLabel(font, value);
     label.AlignCenter();
     p.Add(label);
     return  p;
 }
 public Panel MakeTagSubpanel()
 {
     JwVerticalLayout v = new JwVerticalLayout();
     v.Gap = 0;
     v.ControlWidth.BeFill();
     v.AlignMiddle();
     _serialNumberLabel = VmUiBuilder.MakeValueLabel("");
     v.Add(_serialNumberLabel);
     return v;
 }
        public JwLayout MakeWarningText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignMiddle();
            vp.AlignCenter();

            // kludge (err) language
            String value1Text =
                "The locations don't match!";
            JwLabel value1 = VmUiBuilder.MakeValueLabel(value1Text);
            value1.AlignCenter();
            vp.Add(value1);

            // kludge (err) language
            String value2Text =
                "Do you want to continue?";
            JwLabel value2 = VmUiBuilder.MakeValueLabel(value2Text);
            value2.AlignCenter();
            vp.Add(value2);
            return vp;
        }
        public JwLayout MakeWarningText()
        {
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.Gap = 0;
            vp.AlignMiddle();
            vp.AlignCenter();

            // kludge (err) language --- lots of them
            AddNote(
                vp,
                "The destination locations of the",
                "item and the nest don't match!",
                "Do you want to add this item to",
                "the nest anyway?");
            return vp;
        }