示例#1
0
        /// <summary>
        /// Creates and returns the customizations view and all is sub ui components
        /// </summary>
        /// <returns><see cref="ICustomizationsView"/></returns>
        internal ICustomizationsView CreateCustomizationsView()
        {
            // This is the view which is the parent container to the paramsView, settingsView, and optionsView
            ICustomizationsView view = null;
            using (ElementCustomizationsViewFactory fac = new ElementCustomizationsViewFactory())
            {
                // view = fac.Create();
            }

            if (view != null)
            {
                // This will create the MVP's for the settings, params, and options mgrs when called for the 1st time.
                if (SettingsPresenter != null)
                    view.SettingsView = SettingsPresenter.View;
                else
                {
                    CreateSettingsMgrMVP();
                    view.SettingsView = SettingsPresenter.View;
                }
            }
            return view;
        }
示例#2
0
        /// <summary>
        /// Creates and returns the customizations view and all is sub ui components
        /// </summary>
        /// <returns><see cref="IElementCustomizationsView"/></returns>
        internal IElementCustomizationsView CreateCustomizationsView()
        {
            // This is the view which is the parent container to the paramsView, settingsView, and optionsView
            IElementCustomizationsView view = null;
            using (ElementCustomizationsViewFactory fac = new ElementCustomizationsViewFactory())
            {
                view = fac.Create();
            }

            if (view != null)
            {
                // This will create the MVP's for the settings, params, and options mgrs when called for the 1st time.
                if (ParamsPresenter != null)
                    view.ParamView = ParamsPresenter.View;
                else
                {
                    CreateParamMgrMVP();
                    view.ParamView = ParamsPresenter.View;
                }
                if (SettingsPresenter != null)
                    view.SettingsView = SettingsPresenter.View;
                else
                {
                    CreateSettingsMgrMVP();
                    view.SettingsView = SettingsPresenter.View;
                }
                if (OptionsPresenter != null)
                    view.OptionsView = OptionsPresenter.View;
                else
                {
                    CreateOptionsMgrMVP();
                    view.OptionsView = OptionsPresenter.View;
                }
                view.MessageView.ElementOwnerId = SimpleElement.Id;
                UpdateElementStatusInCustomizationsView(view, SimpleElement);
            }
            return view;
        }