コード例 #1
0
 private void InitCustomCode()
 {
     cklbDrives.Items.Clear();
     foreach (var ws in IISUtils.GetWebsiteList())
     {
         cklbDrives.Items.Add(ws);
     }
     txtName.Focus();
     ntxtNotifyAfterFailureTimes.Value = 1;
 }
コード例 #2
0
 private void InitCustomCode()
 {
     cklbDrives.Items.Clear();
     foreach (var appPool in IISUtils.GetApplicationPoolList())
     {
         cklbDrives.Items.Add(appPool);
     }
     txtName.Focus();
     ntxtNotifyAfterFailureTimes.Value = 1;
 }
コード例 #3
0
        private void BindData()
        {
            string homePageHtml         = GetTemplate("Home\\Home.htm");
            string movieJukeboxLinkHtml = String.Empty;

            if (Directory.Exists(IISUtils.MapPath(UrlUtils.ToRelativeUrl("~/MovieJukebox/"))))
            {
                movieJukeboxLinkHtml = GetTemplate("Home\\MovieJukeboxLink.htm");
            }
            homePageHtml         = homePageHtml.Replace("<MovieJukeboxLink>", movieJukeboxLinkHtml);
            this.MainContentHtml = homePageHtml;
        }
コード例 #4
0
        public PlaylistPage()
        {
            string directoryRelativeUrl = Conversion.ToString(HttpContext.Current.Request.Params["DirectoryRelativeUrl"]);
            string fileName             = Conversion.ToString(HttpContext.Current.Request.Params["FileName"]);
            string extension            = Conversion.ToString(HttpContext.Current.Request.Params["Extension"]);

            DirectoryListEntryCollection collection = DirectoryListUtils.GetDirectoryList(IISUtils.MapPath(directoryRelativeUrl));

            DirectoryListEntry firstEntry = new DirectoryListEntry();

            firstEntry.Name      = fileName;
            firstEntry.Extension = extension;
            string directoryAbsoluteUrl = UrlUtils.HostUrl + directoryRelativeUrl;

            if (ExtensionUtils.IsImage(extension))
            {
                m_playlist = DirectoryListUtils.GetImagePlaylist(collection, firstEntry, directoryAbsoluteUrl);
            }
            else
            {
                m_playlist = DirectoryListUtils.GetAudioPlaylist(collection, firstEntry, directoryAbsoluteUrl);
            }
        }