New Posts New Posts RSS Feed: Retrieving and Updating Next Invoice #
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Retrieving and Updating Next Invoice #

 Post Reply Post Reply Page  <12
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: Retrieving and Updating Next Invoice #
    Posted: 24-Nov-2010 at 12:41am
I think that I figured it out. I will play around with it and post if I can't get it to work.
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 24-Nov-2010 at 5:25pm
New problem arose I moved the coroutine caller to a repository. From the ViewModel I pass the coroutine method the ssn of the current member, but I get a compile error on the line in red, the Coroutine.Start call. How can I pass a parameter to the coroutine iterator method? 
 

//Coroutine caller

public void CreateJobHistory(string ssn)

{

var coop = Coroutine.Start(CreateNewJobHistory(ssn));

coop.Completed += (sender, args) =>

{

if (args.CompletedSuccessfully)

{

JobHistory newJob = coop.Result as JobHistory;

}

else

{

}

};

}

Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 25-Nov-2010 at 7:22pm
I figured it out. Thanks to Ward's Bad Golfer application.
 

var coop = Coroutine.Start(() => CreateNewJobHistory(ssn));

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down