Пример #1
0
 private void CustomersForm_Load(object sender, EventArgs e)
 {
     name  = new Regex("^[a-zA-Z]+[a-zA-z\\s\\-\\,]*$", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
     phone = new Regex("^\\(?[\\d]{3}\\)?[\\s-]?[\\d]{3}[\\s-]?[\\d]{4}$");
     dgv_Cust.DataSource = a.customerList();
 }
Пример #2
0
 private void BookingsForm_Load(object sender, EventArgs e)
 {
     dgv_Flight.DataSource = a.flightList();
     dgv_Cust.DataSource   = a.customerList();
     dgv_Book.DataSource   = a.bookingList();
 }