Skip to content

Instantly share code, notes, and snippets.

@tomwis
Created August 17, 2017 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomwis/321fab635d738572d6d4472b873cec89 to your computer and use it in GitHub Desktop.
Save tomwis/321fab635d738572d6d4472b873cec89 to your computer and use it in GitHub Desktop.
public override void Init(object initData)
{
base.Init(initData);
if (initData is MonthItem monthItem)
{
// Przekazaliśmy obiekt w parametrze PushPageModel w DashboardViewModel
}
else
{
// Tutaj wywołaliśmy PushPageModel w DashboardViewModel bez parametru
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment