예제 #1
0
        //saving data before from closes


        private void frmPower_FormClosing(object sender, FormClosingEventArgs e)
        {
            CustomerDB.SaveCustomers(customers);
        }
예제 #2
0
 //read customers from file and display
 private void frmPower_Load(object sender, EventArgs e)
 {
     customers = CustomerDB.ReadCustomers();
     DisplayCustomers();
 }