Dev2.Studio.UserInterfaceLayoutProvider.TabContextChanged C# (CSharp) Method

TabContextChanged() private method

private TabContextChanged ( object input ) : void
input object
return void
        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();
            }
        }