Beispiel #1
0
        private void SplitSearchWindow_Load(object sender, EventArgs e)
        {
            ModSelectionHandler.ConfigureModFilter();

            _minLevel.KeyPress   += MinLevel_KeyPress;
            _minLevel.MouseWheel += MinLevel_MouseWheel;

            _maxLevel.KeyPress   += MinLevel_KeyPress;
            _maxLevel.MouseWheel += MaxLevel_MouseWheel;

            _itemQuality.Items.AddRange(UIHelper.QualityFilter.ToArray <object>());
            _itemQuality.SelectedIndex         = 0;
            _selectedItemQuality               = _itemQuality.SelectedItem as ComboBoxItemQuality;
            _itemQuality.SelectedIndexChanged += (s, ev) => { _selectedItemQuality = _itemQuality.SelectedItem as ComboBoxItemQuality; };
            _itemQuality.SelectedIndexChanged += BeginSearchOnAutoSearch;

            _slotFilter.Items.AddRange(UIHelper.SlotFilter.ToArray <object>());
            _slotFilter.SelectedIndex         = 0;
            _selectedSlot                     = _slotFilter.SelectedItem as ComboBoxItem;
            _slotFilter.SelectedIndexChanged += (s, ev) => { _selectedSlot = _slotFilter.SelectedItem as ComboBoxItem; };
            _slotFilter.SelectedIndexChanged += BeginSearchOnAutoSearch;

            FormClosing += SplitSearchWindow_FormClosing;

            _searchBox.TextChanged += SearchBox_TextChanged;

            _orderByLevel.CheckStateChanged += delegate { UpdateListViewDelayed(); };

            _flowPanelFilter.SizeChanged += FlowPanelFilter_Resize;
            _mainSplitter.SizeChanged    += FlowPanelFilter_Resize;

            LocalizationLoader.ApplyTooltipLanguage(toolTip1, Controls, RuntimeSettings.Language);
        }