Beispiel #1
0
        private string GetWebdavAction(string path, WebdavModes mode)
        {
            string url = GetWebdavUrl(path);

            if (String.IsNullOrEmpty(url))
            {
                return(null);
            }
            else
            {
                switch (mode)
                {
                case WebdavModes.Open: return(string.Format("javascript:SN.WebDav.OpenDocument(\"{0}\")", url));

                case WebdavModes.Browse: return(string.Format("javascript:SN.WebDav.BrowseFolder(\"{0}\")", url));

                default: return(null);
                }
            }
        }
 private string GetWebdavAction(string path, WebdavModes mode)
 {
     string url = GetWebdavUrl(path);
     if (String.IsNullOrEmpty(url))
         return null;
     else
         switch (mode)
         {
             case WebdavModes.Open: return string.Format("javascript:SN.WebDav.OpenDocument(\"{0}\")", url);
             case WebdavModes.Create: return string.Format("javascript:SN.WebDav.CreateDocument(\"{0}\")", url);
             case WebdavModes.Browse: return string.Format("javascript:SN.WebDav.BrowseFolder(\"{0}\")", url);
             default: return null;
         }
 }