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); }
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); }
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); }
public void setValue(WebAppVirtualDir virtualDir) { this.Name = virtualDir.Name; this.txt_virtualName.Text = virtualDir.VirtualName; this.txt_path.Text = virtualDir.Path; }
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)); }
public void addVirtualDir(WebApp webapp, WebAppVirtualDir newvirtualdir) { this.Apps.WebAppList.Find((WebApp sa) => sa.Name == (webapp as WebApp).Name).VirtualDirList.Add(newvirtualdir); }