protected override async void OnNavigatedTo(NavigationEventArgs e) { using (var db = new Models.PydioContext()) { Server = db.Servers.Where(b => b.ServerId == (int)e.Parameter).First(); API = new Pydio.API(Server); BrowseRoot(); } }
private void ServerClicked(object sender, TappedRoutedEventArgs e) { Models.Server server = (Models.Server)Servers.SelectedItem; System.Diagnostics.Debug.WriteLine("Servers:" + server.Name); Pydio.API API = new Pydio.API(server); this.Frame.Navigate(typeof(Browser), server.ServerId); }
private void ServerClicked(object sender, TappedRoutedEventArgs e) { Models.Server server = (Models.Server) Servers.SelectedItem; System.Diagnostics.Debug.WriteLine("Servers:" + server.Name); Pydio.API API = new Pydio.API(server); this.Frame.Navigate(typeof(Browser), server.ServerId); }
public OneInputDialog(string Workspace, string Path, Models.Server Server) { this.InitializeComponent(); API = new Pydio.API(Server); this.Path = Path; this.type = TYPE_CREATE; this.Workspace = Workspace; this.Title = "Create new folder"; Input.PlaceholderText = "New folder name"; }
public OneInputDialog(Models.File FileParam, Models.Server Server) { this.InitializeComponent(); API = new Pydio.API(Server); this.File = FileParam; this.type = TYPE_RENAME; this.Title = "Rename " + FileParam.Label; Input.PlaceholderText = "New file name"; Input.Text = FileParam.Label; Input.SelectionStart = 0; Input.SelectionLength = File.Label.Split('.')[0].Length; }