private void ExitBtn_Click(object sender, EventArgs e) { DS_Project.ReadAndWrite w = new ReadAndWrite(); w.Writeadmins(admins); w.WriteCars(cars); w.Writeclients(clients); w.Writedrivers(drivers); this.Close(); }
public MainForm() { InitializeComponent(); DS_Project.ReadAndWrite r = new ReadAndWrite(); r.readcars(cars); r.readAdmins(admins); r.readclients(clients); r.readdrivers(drivers); C_id = clients.Count; D_id = drivers.Count; }