User Profile & Activity

Joe Meirow Member

OK, I guess I answered my own question. Here's the code:


using ISNet.WebUI.WebScheduler;


public partial class Cal : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

        this.PreRender += new EventHandler(Page_PreRender);

    }

    protected void Page_PreRender(object sender, EventArgs e)

    {

        WebSchedulerResource res = WebScheduler1.Resources.CreateNewItem();

        res.ResourceName = "Jones, James";

       WebScheduler1.Resources.Add(res);

    }

}



public class MyResource : ISNet.WebUI.INamedObject2

{

    #region INamedObject2 Members

    string ISNet.WebUI.INamedObject2.Name

    {

        get

      {

            return "Johnson, James";

        }

        set

        {

            throw new Exception("Set is not implemented.");

        }

    }

    void  ISNet.WebUI.INamedObject2.OnItemAdd(ISNet.WebUI.ISCollectionBase<ISNet.WebUI.INamedObject2> collection)

    {

        throw new Exception("OnItemAdd is not implemented.");

    }


    void ISNet.WebUI.INamedObject2.OnItemRemove(ISNet.WebUI.ISCollectionBase<ISNet.WebUI.INamedObject2> collection)

    {

        throw new Exception("OnItemRemove is not implemented.");

    }

    #endregion

}

All times are GMT -5. The time now is 7:52 PM.
Previous Next