示例#1
0
        public FileProviderExtension()
        {
            ServerSettings serverSettings = AppGroupSettings.GetServerSettings();

            this.Session        = SessionFactory.Create(serverSettings);
            this.LocalStorage   = new LocalStorage();
            this.LocationMapper = new LocationMapper(serverSettings.ServerUri, this.LocalStorage.StorageRootPath);
            this.StorageManager = new StorageManager(this.LocationMapper, this.Session, this.LocalStorage);
        }
示例#2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ServerSettings serverSettings = AppGroupSettings.GetServerSettings();

            if (serverSettings != null)
            {
                this.Server.Text   = serverSettings.ServerUri.ToString();
                this.Username.Text = serverSettings.UserName ?? string.Empty;
                this.Password.Text = serverSettings.Password ?? string.Empty;
            }

#if DEBUG
            this.Server.Text = "http://webdavserver.net/User7bb0de4/";
#endif
        }