/// <summary> /// Loads the budget. /// </summary> /// <param name="stage">The stage.</param> private void LoadBudget(ICampaignStage stage) { try { ComponentView budget = Rules.CalculateBudget(stage); slxCurActualCost.Text = budget.GetProperties()["ActualCosts"].GetValue(budget).ToString(); slxCurEstimatedCost.Text = budget.GetProperties()["EstCosts"].GetValue(budget).ToString(); txtActualHours.Text = string.Format("{0:n}", budget.GetProperties()["ActualHours"].GetValue(budget)); txtEstimatedHours.Text = string.Format("{0:n}", budget.GetProperties()["EstHours"].GetValue(budget)); } catch { //Error Calculatig Budget. } }