private void FormFiltersIntervals_Load(object sender, EventArgs e) { _book = GeneralRep.ActiveBook; _intervalsForm = (FormIntervals)_book.Forms[ReporterCommand.Intervals]; var sys = _book.SysPage; sys.GetControl(FilterOtm, "FilterOtmIntervals"); sys.GetControl(RelationOtm, "RelationOtmIntervals"); sys.GetControl(FilterName, "FilterNameIntervals"); sys.GetControl(RelationName, "RelationNameIntervals"); sys.GetControl(FilterBegin1, "FilterBegin1Intervals"); sys.GetControl(RelationBegin1, "RelationBegin1Intervals"); sys.GetControl(FilterBegin2, "FilterBegin2Intervals"); sys.GetControl(RelationBegin2, "RelationBegin2Intervals"); sys.GetControl(FilterEnd1, "FilterEnd1Intervals"); sys.GetControl(RelationEnd1, "RelationEnd1Intervals"); sys.GetControl(FilterEnd2, "FilterEnd2Intervals"); sys.GetControl(RelationEnd2, "RelationEnd2Intervals"); sys.GetControl(FilterTimeChange1, "FilterTimeChange1Intervals"); sys.GetControl(RelationTimeChange1, "RelationTimeChange1Intervals"); sys.GetControl(FilterTimeChange2, "FilterTimeChange2Intervals"); sys.GetControl(RelationTimeChange2, "RelationTimeChange2Intervals"); FilterBegin1.ChangePickerValue(PickerBegin1); FilterBegin2.ChangePickerValue(PickerBegin2); FilterEnd1.ChangePickerValue(PickerEnd1); FilterEnd2.ChangePickerValue(PickerEnd2); FilterTimeChange1.ChangePickerValue(PickerTimeChange1); FilterTimeChange2.ChangePickerValue(PickerTimeChange2); new ToolTip().SetToolTip(ButFilter, "Применить фильтр к журналу отчетов"); new ToolTip().SetToolTip(ButClearFilter, "Снять фильтр с журнала отчетов"); new ToolTip().SetToolTip(ButFind, "Поиск в журнале отчетов"); }
private void FilterTimeChange1_TextChanged(object sender, EventArgs e) { FilterTimeChange1.ChangePickerValue(PickerTimeChange1); }