private void InitScreenData() { ExpenseReport objReport = new ExpenseReport(); string otherDetails = string.Empty; string totalExpense = objReport.GetTotalExpenses(); if (objReport.GetDataTableForDisplay().Rows.Count > 0) { dataGridView1.DataSource = objReport.GetDataTableForDisplay(); string message = "Total Expense " + AccountPlus.Configurations.ApplicationConfiguration.ExpenseCCY + " : " + totalExpense + "\n" + "No of participants : " + objReport.GetAllUsers().Length.ToString() + "\n" + "Individual Contribution (" + AccountPlus.Configurations.ApplicationConfiguration.ExpenseCCY + ") : " + objReport.GetIndividualExpense(); lblMessage.Text = message; otherDetails = "Date : " + System.DateTime.Now.ToLongDateString(); otherDetails = otherDetails + "\n" + "Days : " + objReport.ReportForDays(); otherDetails = otherDetails + "\n" + "Per Day Expense (" + AccountPlus.Configurations.ApplicationConfiguration.ExpenseCCY + ") : " + objReport.PerDayExpense(); btnFinalize.Enabled = totalExpense != "0" ? true : false; lblDateTime.Text = otherDetails; } else { btnFinalize.Enabled = false; message1.SetMessage(MessageManager.GetMessage("39")); } }