Exemplo n.º 1
0
        public static void AddCtlDateTime(ref CtlDateTime box, FlowLayoutPanel pnlFlow, string labelText)
        {
            if (box == null)
            {
                box = new CtlDateTime();
            }
            Label lbl = new Label();

            lbl.AutoSize  = true;
            lbl.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
            lbl.Text      = labelText;

            box.Width        = pnlFlow.Width - 12;
            box.ShowCheckBox = true;
            AddLabeledControl(lbl, box, pnlFlow);
        }
Exemplo n.º 2
0
        public static void AddCtlDateTime(ref CtlDateTime box, FlowLayoutPanel pnlFlow, DateTime val, string labelText)
        {
            Label lbl = new Label();

            lbl.AutoSize  = true;
            lbl.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
            //lbl.Width = pnlFlow.Width - 10;
            lbl.Text = labelText;
            //pnlFlow.Controls.Add(lbl);

            box              = new CtlDateTime();
            box.Width        = pnlFlow.Width - 12;
            box.ShowCheckBox = true;
            box.Value        = val;
            //pnlFlow.Controls.Add(box);
            AddLabeledControl(lbl, box, pnlFlow);
        }
Exemplo n.º 3
0
 public static void SetCtlDateTimeValue(CtlDateTime box, DateTime val)
 {
     box.ShowCheckBox = true;
     box.Value        = val;
 }