Esempio n. 1
0
        private UiPlugin CreateUiPlugin(CiPlugin ciPlugin)
        {
            if (ciPlugin != null)
            {
                return(ciPlugin.CreateUiPlugin(this));
            }

            return(null);
        }
Esempio n. 2
0
        // --------------------------------------------------------------------------------------------------
        // Helpers
        // --------------------------------------------------------------------------------------------------

        private UiPlugin CreateUiPlugin(string puxFile)
        {
            if (!MyUtils.IsEmpty(puxFile))
            {
                return(CreateUiPlugin(CiPlugin.CreateCiPluginFromFile(puxFile)));
            }

            return(null);
        }
Esempio n. 3
0
        // --------------------------------------------------------------------------------------------------
        // Methods
        // --------------------------------------------------------------------------------------------------

        public virtual void LoadUiPlugin(string puxFile)
        {
            try
            {
                LoadUiPlugin(CiPlugin.CreateCiPluginFromFile(puxFile));
            }
            catch (Exception ex)
            {
                MyWebUtils.ShowAlert(Page, ex.Message);
            }
        }
Esempio n. 4
0
        public virtual void LoadUiPlugin(CiPlugin ciPlugin)
        {
            UiPlugin uiPlugin = CreateUiPlugin(ciPlugin);

            if (uiPlugin != null)
            {
                if (uiPlugin.IsInstanceOf(typeof(UiMenu)))
                {
                    UiApplication.Me.CiApplication.Add(uiPlugin.CiPlugin);
                }
                else
                {
                    myInnerPanel.Controls.Add(uiPlugin);
                }
            }
        }