Пример #1
0
 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();
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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";
        }
Пример #5
0
        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";
        }
Пример #6
0
        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;
        }
Пример #7
0
        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;

        }
Пример #8
0
        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();
            }
        }