public CustomPopupBaseSizeableForm(PopupBaseEdit ownerEdit)
     : base(ownerEdit)
 {
     CreateButtons();
     openFile        = new OpenFileDialog();
     formContentSize = new Size(200, 200);
 }
Ejemplo n.º 2
0
 private void OnGotFocus(object sender, EventArgs e)
 {
     (sender as Control).BeginInvoke(new MethodInvoker(delegate
     {
         PopupBaseEdit editor = sender as PopupBaseEdit;
         if (editor.IsPopupOpen)
         {
             editor.ClosePopup();
             editor.ShowPopup();
         }
     }));
 }
Ejemplo n.º 3
0
        private void grvrootmuahang_ShownEditor(object sender, EventArgs e)
        {
            GridView view = sender as GridView;

            if (view.FocusedColumn.FieldName == "Mã Hàng")
            {
                PopupBaseEdit edit = view.ActiveEditor as PopupBaseEdit;
                if (edit == null)
                {
                    return;
                }
                view.GridControl.BeginInvoke(new MethodInvoker(() => { edit.ShowPopup(); }));
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ctl"></param>
 /// <param name="force"></param>
 public static void SetPopupControlBehavior(this PopupBaseEdit ctl, bool force)
 {
     if (force || ctl.Properties.ShowDropDown != ShowDropDown.Never)
     {
         if (BaseSettings.ShowDropDown == "DoubleClick")
         {
             ctl.Properties.ShowDropDown = ShowDropDown.DoubleClick;
         }
         else
         {
             ctl.Properties.ShowDropDown = ShowDropDown.SingleClick;
         }
     }
     if (Localizer.IsRtl)
     {
         ctl.RightToLeft = RightToLeft.Yes;
     }
 }
Ejemplo n.º 5
0
        private void UnsetEvents(ScrollableControl sContrl)
        {
            foreach (Control contr in sContrl.Controls)
            {
                ScrollableControl s_contrl = contr as ScrollableControl;
                if (s_contrl != null)
                {
                    UnsetEvents(s_contrl);
                    continue;
                }

                PopupBaseEdit pbe = contr as PopupBaseEdit;
                if (pbe == null)
                {
                    continue;
                }
                pbe.GotFocus -= handleGotFocus;
            }
        }
 public FATouchPopupDateEditForm(PopupBaseEdit ownerEdit) : base(ownerEdit)
 {
 }
Ejemplo n.º 7
0
 public MyCustomForm(PopupBaseEdit ownerEdit)
     : base(ownerEdit)
 {
     CreateControls();
 }
 public FATouchPopupDateEditForm(PopupBaseEdit ownerEdit)
     : base(ownerEdit)
 {
 }
 public PopupCalcEditFormDescendant(PopupBaseEdit ownerEdit)
     : base(ownerEdit)
 {
     userControl = new UserControl1();
 }
 public TreeListLookUpPopupForm(PopupBaseEdit ownerEdit)
     : base(ownerEdit)
 {
     this.TreeList.Bounds = new System.Drawing.Rectangle(SmallIndent / 2, SmallIndent / 2, 0, 0);
     Controls.Add(TreeList);
 }