public void Set_FilterInfo(InteractionFilter info)
        {
            if (info == null) return;
            if (info.Control == "CheckedComboBox"
                || info.Control == "TreeListBox"
                || info.Control == "Calendar_Prev")
            {
                this.chkEnableRange.Visible = false;
            }
            else
            {
                this.chkEnableRange.Visible = true;
            }

            if (info.Control == "Calendar_Year"
                || info.Control == "Calendar_Quarter"
                || info.Control == "Calendar_Period"
                || info.Control == "Calendar_Day"
                || info.Control == "Calendar_Prev")
            {
                this.cbbSourceField.Visible = false;
            }
            else
            {
                this.cbbSourceField.Visible = true;
            }
            //this.ID = info.Name;
            this.cbbControl.Value = info.Control;
            this.cbbSourceField.Value = info.SourceField;
            this.txtCaption.Text = info.Caption;
            this.chkEnableRange.Checked = info.EnableRange;
        }
Esempio n. 2
0
        public void Set_FilterInfo(InteractionFilter info)
        {
            if (info == null)
            {
                return;
            }
            if (info.Control == "CheckedComboBox" || info.Control == "TreeListBox" ||
                info.Control == "Calendar_Prev")
            {
                this.chkEnableRange.ClientVisible = false;
            }
            else
            {
                this.chkEnableRange.ClientVisible = true;
            }

            if (info.Control == "Calendar_Year" || info.Control == "Calendar_Quarter" ||
                info.Control == "Calendar_Period" || info.Control == "Calendar_Day" ||
                info.Control == "Calendar_Prev")
            {
                this.cbbSourceField.ClientVisible = false;
            }
            else
            {
                this.cbbSourceField.ClientVisible = true;
            }
            this.ID = info.Name;
            this.cbbControl.Value       = info.Control;
            this.cbbSourceField.Value   = info.SourceField;
            this.txtCaption.Text        = info.Caption;
            this.chkEnableRange.Checked = info.EnableRange;
        }
Esempio n. 3
0
        public override void Load_InitData()
        {
            var prevValSel = this.cbbControl.Value;

            this.cbbControl.Items.Clear();
            var ds = InteractionFilter.Get_Control();

            Helpers.SetDataSource(this.cbbControl, ds, "Code", "Name", prevValSel);
        }
Esempio n. 4
0
        private void InstallGlobalHook()
        {
            // We'll install a system global hook to detect mouse movement
            // and intercept clicks even outside Duality
            this.hookPtr = NativeMethods.SetWindowsMouseHookEx(this.mouseHook);

            // At the same time, we'll filter all interaction events within
            // Duality, so the UI doesn't highlight on hover, etc.
            this.interactionFilter = new InteractionFilter();
            Application.AddMessageFilter(this.interactionFilter);
        }
Esempio n. 5
0
 public InteractionFilter Get_FilterInfo()
 {
     try
     {
         var ret = new InteractionFilter();
         ret.Name        = this.ID;
         ret.Caption     = this.txtCaption.Text;
         ret.Control     = Lib.NTE(this.cbbControl.Value);
         ret.SourceField = Lib.NTE(this.cbbSourceField.Value);
         ret.EnableRange = this.chkEnableRange.Checked;
         return(ret);
     }
     catch { return(null); }
 }
 public InteractionFilter Get_FilterInfo()
 {
     try
     {
         var ret = new InteractionFilter();
         ret.Name = this.ID;
         ret.Caption = this.txtCaption.Text;
         ret.Control = Lib.NTE(this.cbbControl.Value);
         ret.SourceField = Lib.NTE(this.cbbSourceField.Value);
         ret.EnableRange = this.chkEnableRange.Checked;
         return ret;
     }
     catch { return null; }
 }
Esempio n. 7
0
 private void ReleaseGlobalHook()
 {
     NativeMethods.UnhookWindowsHookEx(this.hookPtr);
     Application.RemoveMessageFilter(this.interactionFilter);
     this.interactionFilter = null;
 }