$ 0 0 To make it work both way you can keep the logical code in your public AssignedTasksPage(string tab){}.