/// <summary> /// Called when the user selects the "Filter..." action in the action box /// </summary> private void OnFilter_Clicked(object sender, LinkLabelLinkClickedEventArgs e) { EventlogPlugin evtPlugin = (EventlogPlugin)base.pi; LogPropertiesDlg lpDlg = new LogPropertiesDlg( base.container, this, evtPlugin, lvEvents, null, ef, "FilterProperities"); lpDlg.SetData(); lpDlg.ShowDialog(this); if (lpDlg.DialogResult == DialogResult.OK) { EventFilterControl filterform = (EventFilterControl)lpDlg.GetPage("FilterProperities"); ef = filterform.Filter; lblFiltered.Visible = true; lactreeNode.Tag = ef; FillComboWithLogCount(); } }
/// <summary> /// Called when the user selects the "Event properties..." action in the action box /// </summary> private void OnEventProperties_Clicked() { LogPropertiesDlg lpDlg = new LogPropertiesDlg( base.container, this, (EventlogPlugin)base.pi, lvEvents, null, ef, "LogProperities"); lpDlg.SetData(); lpDlg.ShowDialog(this); if (lpDlg.DialogResult == DialogResult.OK) { EventFilterControl filterform = (EventFilterControl)lpDlg.GetPage("FilterProperities"); ef = filterform.Filter; lblFiltered.Visible = ef != null; lactreeNode.Tag = ef; FillComboWithLogCount(); } }