private void UpdateMonthlyTimesheetCalculations() { if (m_calculationsContainer.Controls.Count > 0) { IEnumerable <TimesheetCalculations> timesheetCalculationsCollection = m_calculationsContainer.Controls.OfType <TimesheetCalculations>(); if (timesheetCalculationsCollection.Count() > 0) { TimesheetCalculations timesheetCalculations = timesheetCalculationsCollection.First(); timesheetCalculations.Recalculate(); } } }
// Timesheet Calculations Methods // -------------------------------------------------------------------------- #region Timesheet Calculations Methods private void AddMonthlyTimesheetCalculations() { // Clear out the old... m_calculationsContainer.Controls.Clear(); // Add the new... TimesheetCalculations timesheetCalculations = new TimesheetCalculations(m_monthlyTimesheets); m_calculationsContainer.Controls.Add(timesheetCalculations); //timesheetCalculations.Dock = DockStyle.Fill; //timesheetCalculations.SendToBack(); }