/// <summary> /// Gets the balance of all items /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void bw_DoWork(object sender, DoWorkEventArgs e) { Balance bal = new Balance(); int[] arr = (int [])e.Argument; int storeId = arr[0], year= arr[1], programID=arr[2],commodityTypeID= arr[3]; //if (year == EthiopianDate.EthiopianDate.Now.Year + 1) //{ // month = 1; //When we're sending the month as 1 if the year has been incremented (Fiscal year = year + 1 if month > 10) //} DataTable dtBal = bal.ConsumptionTrendByMonth(storeId, year, programID, bw); e.Result = dtBal; }