Ejemplo n.º 1
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;
        }
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "The close out information for this");
            AddText( vp1, "routing is not available.  What would");
            AddText( vp1, "you like to do?");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetClockConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            return vp;
        }
Ejemplo n.º 3
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "Warning: you are currently in");
            AddText( vp1, "training mode.  The scans and data");
            AddText( vp1, "that you are collecting are not");
            AddText( vp1, "really being sent to the server.");

            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() );
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(vp2);

            vp.Add(lr);

            return vp;
        }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "By using training mode, no scans or");
            AddText( vp1, "collected data will be uploaded to");
            AddText( vp1, "the server.  During this time the device");
            AddText( vp1, "will show an image of a light bulb:");

            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "When done, press this lightbulb to");
            AddText( vp2, "end training.");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() );
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            vp.Add(vp2);

            return vp;
        }
Ejemplo n.º 6
0
        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 MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "Routing data is not available");
            AddText( vp1, "for this item.  What would you");
            AddText( vp1, "like to do?");

            /*
            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");
            */

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetAirPlaneConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            return vp;
        }
Ejemplo n.º 8
0
        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 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;
        }
Ejemplo n.º 10
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;
        }
        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;
        }
Ejemplo n.º 12
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;
        }
Ejemplo n.º 13
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;
 }
Ejemplo n.º 14
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;
 }
Ejemplo n.º 15
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "You are getting this item after");
            AddText( vp1, "the assigned close out time.");
            AddText( vp1, "What would you like to do?");

            /*
            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");
            */

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetClockConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            //            vp.Add(vp2);

            return vp;
        }
Ejemplo n.º 16
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;
 }
Ejemplo n.º 17
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;

            JwList<String> lines = JwUtility.BreakIntoSeperateLines(Message, 30);
            foreach( String line in lines ) AddText( vp1, line);

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            if( Image != null )
            {
                JwPictureBox pb = VmUiBuilder.MakePictureBox(Image);
                JwLeftRightLayout lr = new JwLeftRightLayout();
                lr.RightControl = pb;

                vp.Add(lr);
            }

            return vp;
        }
        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;
        }
Ejemplo n.º 19
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;

            // kludge (err) - language
            String message = "Is the object that you scanned an item or a nest?";
            JwList<String> lines = JwUtility.BreakIntoSeperateLines(message, 30);
            foreach( String line in lines ) AddText( vp1, line);

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            return vp;
        }
        public JwLayout MakeText()
        {
            String message = "This flight should have already departed!  Is the flight departing late, or have you recorded the wrong flight?";
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;

            JwList<String> lines = JwUtility.BreakIntoSeperateLines(message, 40);
            foreach( String line in lines ) AddText( vp1, line);

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            return vp;
        }
        public JwLayout MakeText()
        {
            String message = "This truck has arrived before the scheduled arrival time!  Has the truck arrived early, or have you recorded the wrong truck?";
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;

            JwList<String> lines = JwUtility.BreakIntoSeperateLines(message, 30);
            foreach( String line in lines ) AddText( vp1, line);

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            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;
        }