Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a link to a given action control.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <returns></returns>
 public string GetLink(SharePointForumControls action)
 {
     return(string.Format("{0}?control={1}", BasePath, action.ToString()));
 }
Ejemplo n.º 2
0
		private BaseForumControl CreateDynamicForumControl(SharePointForumControls childControl)
		{
			BaseForumControl control = null;
			
			try
			{
				string controlTypeName = string.Format("{0}.{1}", ForumConstants.Control_Namespace, childControl.ToString());
				Type controlType = Type.GetType(controlTypeName);
				control = Activator.CreateInstance(controlType) as BaseForumControl;
				control.WebPartParent = this;
			}
			catch(ArgumentNullException nullEx)
			{
				AddError(nullEx);
			}

			return control;
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs a link to a given action control.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <returns></returns>
 public string GetLink(SharePointForumControls action)
 {
     return string.Format("{0}?control={1}", BasePath, action.ToString());
 }
Ejemplo n.º 4
0
        private BaseForumControl CreateDynamicForumControl(SharePointForumControls childControl)
        {
            BaseForumControl control = null;

            try
            {
                string controlTypeName = string.Format("{0}.{1}", ForumConstants.Control_Namespace, childControl.ToString());
                Type   controlType     = Type.GetType(controlTypeName);
                control = Activator.CreateInstance(controlType) as BaseForumControl;
                control.WebPartParent = this;
            }
            catch (ArgumentNullException nullEx)
            {
                AddError(nullEx);
            }

            return(control);
        }