Beispiel #1
0
        private void loadDrivers()
        {
            _dgvDrivers.DataSource = driverList.ToDataTable();
            formatDGV();

            _searcher.Find(tbSearch.Text);

            _myFilter.ApplyFilter();
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 private void _dgvCar_Sorted(object sender, EventArgs e)
 {
     _myFilter.ApplyFilter();
     formatDGV();
 }