private void BaseClientsForm_FormClosing(object sender, FormClosingEventArgs e) { ExcelService excel = new ExcelService(); string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\Information System For Car Service\\Information System.xls"; excel.OpenDocument(path); FillClientList(); excel.WriteDataAllUsers(client); excel.CloseDocument(); }