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

AddDeployResources() private method

private AddDeployResources ( object input ) : void
input object
return void
        internal void AddDeployResources(object input)
        {
            //TODO 1018 Move code to show the settings tab to it's own button
            const string tabName = "Settings";

            FrameworkElement tab = FindTabByName(tabName);

            if (tab != null)
            {
                SetActiveDocument(tab);
            }
            else
            {
                RuntimeConfigurationView runtimeConfigurationView = new RuntimeConfigurationView()
                {
                    DataContext = new RuntimeConfigurationViewModel(((IEnvironmentModel)input))
                };

                AttachedPropertyHelper.SetAttachedProperties(runtimeConfigurationView, tabName);

                Tabs.Add(runtimeConfigurationView);
                SetActiveDocument(runtimeConfigurationView);
            }

            //const string tabName = "Deploy Resources";

            //FrameworkElement tab = FindTabByName(tabName);

            //if (tab != null)
            //{
            //    SetActiveDocument(tab);
            //    Mediator.SendMessage(MediatorMessages.SelectItemInDeploy, input);
            //}
            //else
            //{
            //    var view = new DeployView { DataContext = DeployViewModelFactory.GetDeployViewModel(input) };

            //    AttachedPropertyHelper.SetAttachedProperties(view, tabName);

            //    Tabs.Add(view);
            //    SetActiveDocument(view);
            //}
        }