示例#1
0
        public void editVirtualDir(WebApp webApp, WebAppVirtualDir webAppVirtualDir, WebAppVirtualDir newwebAppVirtualDir)
        {
            int index = this.Apps.WebAppList.Find((WebApp sa) => sa.Name == webApp.Name).VirtualDirList.FindIndex((WebAppVirtualDir sa) => sa.Name == webAppVirtualDir.Name);

            deleteVirtualDir(webApp, webAppVirtualDir);
            this.Apps.WebAppList.Find((WebApp sa) => sa.Name == (webApp as WebApp).Name).VirtualDirList.Insert(index, newwebAppVirtualDir);
        }
示例#2
0
        public Object getValue()
        {
            WebAppVirtualDir virtualDir = new WebAppVirtualDir();

            virtualDir.Name        = this.txt_name.Text;
            virtualDir.VirtualName = this.txt_virtualname.Text;
            virtualDir.Path        = this.txt_path.Text;
            return(virtualDir);
        }
示例#3
0
        private List <WebAppVirtualDir> getVirtualDirList()
        {
            List <WebAppVirtualDir> virtualDirList = new List <WebAppVirtualDir>();

            if (virtualDirCtlList != null && virtualDirCtlList.Count > 0)
            {
                foreach (webSiteVirtualDirctorySet virtualDirSet in virtualDirCtlList)
                {
                    WebAppVirtualDir virtualdir = new WebAppVirtualDir();
                    virtualdir.Name        = virtualDirSet.Name;
                    virtualdir.VirtualName = virtualDirSet.VirtualName;
                    virtualdir.Path        = virtualDirSet.Path;
                    virtualDirList.Add(virtualdir);
                }
            }
            return(virtualDirList);
        }
示例#4
0
 public void setValue(WebAppVirtualDir virtualDir)
 {
     this.Name = virtualDir.Name;
     this.txt_virtualName.Text = virtualDir.VirtualName;
     this.txt_path.Text        = virtualDir.Path;
 }
示例#5
0
 public void deleteVirtualDir(WebApp webApp, WebAppVirtualDir webAppVirtualDir)
 {
     this.Apps.WebAppList.Find((WebApp sa) => sa.Name == webApp.Name).VirtualDirList.Remove(this.Apps.WebAppList.Find((WebApp sa) => sa.Name == webApp.Name).VirtualDirList.Find((WebAppVirtualDir sa) => sa.Name == webAppVirtualDir.Name));
 }
示例#6
0
 public void addVirtualDir(WebApp webapp, WebAppVirtualDir newvirtualdir)
 {
     this.Apps.WebAppList.Find((WebApp sa) => sa.Name == (webapp as WebApp).Name).VirtualDirList.Add(newvirtualdir);
 }