private void Services_Load(object sender, EventArgs e) { ExcelService excel = new ExcelService(); if ((user.GetType() == typeof(Administration))) { col_services.ReadOnly = false; col_price.ReadOnly = false; col_priceForVIP.ReadOnly = false; col_leadTime.ReadOnly = false; ms_toOrder.Visible = false; } else { ms_delete.Visible = false; } string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\Information System For Car Service\\Information System.xls"; if (excel.ExcelIsPresent()) { if (File.Exists(path)) { excel.OpenDocument(path); } else { excel.NewDocument(); } excel.ReadServiceList(service); FillDataGridView(); excel.CloseDocument(); } }