Hi,
I've got this problem when I generate a SL client
"parameter does not exist in the current context"
private void OnCreateClientDecisionPointWorkerCompleted(object sender, global::System.ComponentModel.RunWorkerCompletedEventArgs e)
{
OnCreateClientGuard guard = (OnCreateClientGuard)e.Result;
switch (guard)
{
case OnCreateClientGuard.Success:
this.EventAggregator.GetEvent<Infrastructure::ClientSuccessEvent>().Publish(parameter.ClientSuccessEventArgs);
break;
case OnCreateClientGuard.Fail:
AccountChoice accountChoice = null;
foreach (object view in this.RegionManager.Regions["R1"].Views)
{
if (view is AccountChoice)
{
accountChoice = view as AccountChoice;
break;
}
}
if (null == accountChoice)
{
accountChoice = this.Container.GetExportedValue<AccountChoice>();
this.RegionManager.Regions["R1"].Add(accountChoice);
}
this.RegionManager.Regions["R1"].Activate(accountChoice);
break;
default:
break;
}
}