protected static void ApplicationStartup(object sender, ActiveEventArgs e)
 {
     if (ActiveType<RssReaderRecords.RssItem>.Count == 0)
     {
         RssReaderRecords.RssItem item = new RssReaderRecords.RssItem
         {
             URL = "http://ra-ajax.org/thomas.blogger?rss=true"
         };
         item.Save();
     }
 }
        protected static void AddNewRSSItem(object sender, ActiveEventArgs e)
        {
            RssReaderRecords.RssItem i = new RssReaderRecords.RssItem {URL = ""};
            i.Save();
            RssDatabase.Reset();

            e.Params["Grid"]["Columns"]["URL"]["Caption"].Value = Language.Instance["URL", null, "URL"];
            e.Params["Grid"]["Columns"]["URL"]["ControlType"].Value = "InPlaceEdit";

            int idxNo = 0;
            foreach (RssReaderRecords.RssItem idx in ActiveType<RssReaderRecords.RssItem>.Select())
            {
                e.Params["Grid"]["Rows"]["Row" + idxNo]["ID"].Value = idx.ID;
                e.Params["Grid"]["Rows"]["Row" + idxNo]["URL"].Value = idx.URL;
                idxNo += 1;
            }
        }