private void loadDrivers() { _dgvDrivers.DataSource = driverList.ToDataTable(); formatDGV(); _searcher.Find(tbSearch.Text); _myFilter.ApplyFilter(); }
public void FormatAndFilter() { FormatDelegate currentFormat; currentFormat = Format.GetFormatType(comboBox1); List <MyMessage> listToDisplay = new List <MyMessage>(); listToDisplay = myReceivedMessages; MyFilter filter = new MyFilter(); object selectedUser = new object(); if (comboBox2.Created) { selectedUser = MyMobile.SMSProvider.selectUser(comboBox2); } listToDisplay = filter.ApplyFilter(filter, myReceivedMessages, selectedUser, textBox1.Text, dateTimePicker1.Value, dateTimePicker2.Value, checkBoxAndLogic, checkBoxOrLogic); Format.ShowMessages(MessageListView, listToDisplay, currentFormat); }
private void _dgvCar_Sorted(object sender, EventArgs e) { _myFilter.ApplyFilter(); formatDGV(); }