internal void TabContextChanged(object input)
{
RemoveDataList();
if (input == null)
return;
Type type = input.GetType();
if (type == typeof(WorkflowDesignerViewModel))
{
var workflowVm = input as WorkflowDesignerViewModel;
if (workflowVm != null)
{
AddDataListView(workflowVm.ResourceModel);
if (PropertyPane != null)
PropertyPane.Content = workflowVm.PropertyView;
}
if (workflowVm != null)
{
workflowVm.AddMissingWithNoPopUpAndFindUnusedDataListItems();
}
}
else
{
HideDataList();
}
}