//saving data before from closes private void frmPower_FormClosing(object sender, FormClosingEventArgs e) { CustomerDB.SaveCustomers(customers); }
//read customers from file and display private void frmPower_Load(object sender, EventArgs e) { customers = CustomerDB.ReadCustomers(); DisplayCustomers(); }