public void updateView() { double total = stageList[Model.HITData.ResultType.Macro].percentDone; cost = stageList[Model.HITData.ResultType.Macro].stagedata.moneySpent; HITViewStub.updateViewDelegate del = new HITViewStub.updateViewDelegate(stub.updateView); Globals.Soylent.soylentMap[Globals.Soylent.jobToDoc[job]].Invoke(del, total, cost); }
public void updateView() { double find = stageList[Model.HITData.ResultType.Find].percentDone; double fix = stageList[Model.HITData.ResultType.Fix].percentDone; double verify = stageList[Model.HITData.ResultType.Verify].percentDone; double total = (find / 3.0) + (fix / 3.0) + (verify / 3.0); cost = stageList[Model.HITData.ResultType.Find].stagedata.moneySpent + stageList[Model.HITData.ResultType.Fix].stagedata.moneySpent + stageList[Model.HITData.ResultType.Verify].stagedata.moneySpent; HITViewStub.updateViewDelegate del = new HITViewStub.updateViewDelegate(stub.updateView); Globals.Soylent.soylentMap[Globals.Soylent.jobToDoc[job]].Invoke(del, total, cost); }