Beispiel #1
0
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            string _phase = "Starting";

            try
            {
                m_AssociatedUserControl = (LoadDescriptionWebPartUserControl)Page.LoadControl(_ascxPath);
                _phase = "m_AssociatedUserControl";
                m_AssociatedUserControl.Role = Role;
                _phase = "m_AssociatedUserControl";
                Controls.Add(m_AssociatedUserControl);
            }
            catch (Exception _ex)
            {
                string _frmt = "Cannot lod the user control at: {0} because : {1}";
                Controls.Add(new LiteralControl(String.Format(_frmt, _phase, _ex.Message)));
            }
        }
Beispiel #2
0
 public LocalStateMachineEngine(LoadDescriptionWebPartUserControl _parent)
     : base()
 {
     Parent = _parent;
 }