示例#1
0
 private void RefreshButton_Click(object sender, RoutedEventArgs e)
 {
     bNesis.Sdk.FileStorages.Common.FileStorageItem[] collection = DropboxConnect.GetItemsFromStorage();
     foreach (var item in collection)
     {
     }
 }
示例#2
0
        private void Field_Drop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                // Note that you can have more than one file.
                string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);

                // Assuming you have one file that you care about, pass it off to whatever
                // handling code you have defined.
                DropboxConnect.Upload(files[0]);
            }
        }
示例#3
0
 private void ConnectButton_Click(object sender, RoutedEventArgs e)
 {
     ConnectionMessage("Starting...");
     if (connection.IsClosed())
     {
         connection = new DropboxConnect();
     }
     else
     {
         ConnectionMessage("Connection is stable.");
     }
 }
 internal void RemoveFile(string fileName)
 {
     DropboxConnect.RemoveFile(fileName);
     FileGrid.RemoveItem(fileName);
     //throw new NotImplementedException();
 }
示例#5
0
 public LoginPage()
 {
     InitializeComponent();
     ConnectionMessage("Starting...");
     connection = new DropboxConnect();
 }