Esempio n. 1
0
 public TreePicker()
 {
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     //效果不好  当焦点在接受Enter的控件上无效
     AcceptButton = new BarItemEx(barOk, DialogResult.OK);
 }
Esempio n. 2
0
 public SkinPicker()
 {
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     //效果不好  当焦点在接受Enter的控件上无效
     AcceptButton = new BarItemEx(barOk, DialogResult.OK);
     SkinHelper.InitSkinGallery(sg, false, false, false);
 }
Esempio n. 3
0
 public ScriptPage(string script)
 {
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     //效果不好  当焦点在接受Enter的控件上无效
     AcceptButton    = new BarItemEx(barOk, DialogResult.OK);
     sqlEdit1.Script = script;
 }
Esempio n. 4
0
 public GridPicker()
 {
     //Start
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     //效果不好  当焦点在接受Enter的控件上无效
     AcceptButton = new BarItemEx(barOk, DialogResult.OK);
     //
     gv.OptionsSelection.CheckBoxSelectorColumnWidth = 40;
 }
Esempio n. 5
0
 public PhrasePage(string returnText)
 {
     //Start
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     //效果不好  当焦点在接受Enter的控件上无效
     AcceptButton = new BarItemEx(barOk, DialogResult.OK);
     //
     Spliter      = ", ";
     editBox.Text = returnText;
 }
Esempio n. 6
0
        public FieldEdit(params GridColumn[] gridColumns)
        {
            //Start
            InitializeComponent();
            CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
            AcceptButton = new BarItemEx(barOk, DialogResult.OK);
            //
            lyc.BeginUpdate();
            List <BaseLayoutItem> baseLayoutItems = new List <BaseLayoutItem>();

            foreach (GridColumn gridColumn in gridColumns)
            {
                LayoutControlItem eLayoutControlItem = new LayoutControlItem();
                eLayoutControlItem.Location = new System.Drawing.Point(0, baseLayoutItems.Count * 23);
                eLayoutControlItem.Name     = "oli_" + gridColumn.Name;
                eLayoutControlItem.Text     = gridColumn.Caption;
                eLayoutControlItem.Size     = new Size(this.Width, 23);
                BaseEdit baseEdit = new TextEdit();
                eLayoutControlItem.Control = baseEdit;
                baseLayoutItems.Add(eLayoutControlItem);
            }
            lyg.AddRange(baseLayoutItems.ToArray());
            lyc.EndUpdate();
        }
Esempio n. 7
0
 public TextPage()
 {
     InitializeComponent();
     CancelButton = new BarItemEx(barCancel, DialogResult.Cancel);
     AcceptButton = new BarItemEx(barOk, DialogResult.OK);
 }