Esempio n. 1
0
        // Поиск записи по дате рождения
        private void birthdayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string data = BirthdayDateTimePicker.Value.ToLongDateString();

            dataGridView.DataSource = SearchRecords
                                      .SearchBirthday(data, ListRecords);
        }
Esempio n. 2
0
        private void SearchRecordButton_Click(object sender, EventArgs e)
        {
            Record searchRecord = CreateNewRecord();

            dataGridView.DataSource = SearchRecords.
                                      SearchRecord(searchRecord, ListRecords);
        }
Esempio n. 3
0
 // Поиск записи по номеру телефона
 private void numberTelephoneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dataGridView.DataSource = SearchRecords
                               .SearchPhoneNumber(NumberTelephoneTextBox.Text, ListRecords);
 }
Esempio n. 4
0
 // Поиск записи по отчеству
 private void patronymicToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dataGridView.DataSource = SearchRecords
                               .SearchPatronymic(PatronymicTextBox.Text, ListRecords);
 }
Esempio n. 5
0
 // Поиск записи по фамилии
 private void lastNameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dataGridView.DataSource = SearchRecords
                               .SearchLName(LastNameTextBox.Text, ListRecords);
 }