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; }
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; }
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); }
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); }
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; } }
private void ReleaseGlobalHook() { NativeMethods.UnhookWindowsHookEx(this.hookPtr); Application.RemoveMessageFilter(this.interactionFilter); this.interactionFilter = null; }