﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Want to replace "default" resource with a specific value in the Resource drop-down list</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Want-to-replace-default-resource-with-a-specific-value-in-the-Resource-drop-down-list/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Want to replace "default" resource with a specific value in the Resource drop-down list</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Want-to-replace-default-resource-with-a-specific-value-in-the-Resource-drop-down-list/</link><pubDate>Fri, 25 Sep 2009 14:50:47 GMT</pubDate><dc:creator>jmeirow</dc:creator><category>drop-down list resource</category><description>&lt;p&gt;OK, I guess I answered my own question. Here's the code:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;using ISNet.WebUI.WebScheduler;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;public partial class Cal : System.Web.UI.Page&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;    protected void Page_Load(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;        this.PreRender &amp;#43;= new EventHandler(Page_PreRender);&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;    protected void Page_PreRender(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;        WebSchedulerResource res = WebScheduler1.Resources.CreateNewItem();&lt;/p&gt;
&lt;p&gt;        res.ResourceName = "Jones, James";&lt;/p&gt;
&lt;p&gt;       WebScheduler1.Resources.Add(res);&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;public class MyResource : ISNet.WebUI.INamedObject2&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;    #region INamedObject2 Members&lt;/p&gt;
&lt;p&gt;    string ISNet.WebUI.INamedObject2.Name&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;        get&lt;/p&gt;
&lt;p&gt;      {&lt;/p&gt;
&lt;p&gt;            return "Johnson, James";&lt;/p&gt;
&lt;p&gt;        }&lt;/p&gt;
&lt;p&gt;        set&lt;/p&gt;
&lt;p&gt;        {&lt;/p&gt;
&lt;p&gt;            throw new Exception("Set is not implemented.");&lt;/p&gt;
&lt;p&gt;        }&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;    void  ISNet.WebUI.INamedObject2.OnItemAdd(ISNet.WebUI.ISCollectionBase&amp;lt;ISNet.WebUI.INamedObject2&amp;gt; collection)&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;        throw new Exception("OnItemAdd is not implemented.");&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;    void ISNet.WebUI.INamedObject2.OnItemRemove(ISNet.WebUI.ISCollectionBase&amp;lt;ISNet.WebUI.INamedObject2&amp;gt; collection)&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;        throw new Exception("OnItemRemove is not implemented.");&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;    #endregion&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Want to replace "default" resource with a specific value in the Resource drop-down list</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Want-to-replace-default-resource-with-a-specific-value-in-the-Resource-drop-down-list/</link><pubDate>Thu, 24 Sep 2009 16:08:08 GMT</pubDate><dc:creator>jmeirow</dc:creator><category>drop-down list resource</category><description>I am currently evaluating the WebScheduler to see if it can do the things we want it to.&amp;nbsp;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;The first think I want to do is make change the value in the callout's Resource drop-down list from "Default" to some other value.  Via code, I've tried creating a custom class that implements the ISNet.WebUI.INamedObject2 interface and then "Add" an instance of the class to the Resources collection on the WebScheduler object itself, to no avail. &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Is adding a custom resource to the list do-able??&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Joe&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>