Beispiel #1
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;
        }
Beispiel #2
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;
        }
Beispiel #3
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);
 }
        public Control MakeSummaryDataPanel(
            String identifierText,
            JwLabel valueLabel)
        {
            JwVerticalLayout v = new JwVerticalLayout();
            v.AlignLeft();
            v.ControlWidth.BeFill();
            v.Gap = 0;

            JwLabel identifierLabel = VmUiBuilder.MakeIdentifierLabel(identifierText);

            v.Add(identifierLabel);
            v.Add(valueLabel);

            return v;
        }
 public Control MakeSummaryLabel()
 {
     JwVerticalLayout v = new JwVerticalLayout();
     v.ControlWidth.BeFill();
     v.Gap = 2;
     v.AlignLeft();
     v.Add(MakeNestLabel());
     v.Add(MakeNestLocationLabel());
     v.Add(MakeItemLocationLabel());
     return v;
 }