private async void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormInputDialog dialog = new FormInputDialog("Search", "Search for:");

            var result = dialog.ShowDialog();

            if (result != System.Windows.Forms.DialogResult.OK && !string.IsNullOrEmpty(dialog.InputText))
            {
                return;
            }

            try
            {
                ShowWork(true);
                var results = await Connection.SearchForItemsAsync(ODConnection.ItemReferenceForItemId("root"), dialog.InputText, ItemRetrievalOptions.Default);

                var form = new FormSyncResults(Connection, results);
                form.Show();
            }
            catch (ODException exception)
            {
                PresentOneDriveException(exception);
            }
            ShowWork(false);
        }
Beispiel #2
0
        private async void getDriveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var defaultDrive = await Connection.GetDrive();

            FormSyncResults display = new FormSyncResults(Connection, defaultDrive);

            display.Show();
        }
        private async void getChangesHereToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                var result = await Connection.ViewChangesAsync(this.CurrentFolder.ItemReference(), ViewChangesOptions.Default);

                FormSyncResults results = new FormSyncResults(Connection, result);
                results.Show();
            }
            catch (ODException ex)
            {
                PresentOneDriveException(ex);
            }
        }
Beispiel #4
0
        private async void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormInputDialog dialog = new FormInputDialog("Search", "Search for:");

            var result = dialog.ShowDialog();
            if (result != System.Windows.Forms.DialogResult.OK && !string.IsNullOrEmpty(dialog.InputText))
            {
                return;
            }

            try
            {
                ShowWork(true);
                var results = await Connection.SearchForItemsAsync(ODConnection.ItemReferenceForItemId("root"), dialog.InputText, ItemRetrievalOptions.Default);
                var form = new FormSyncResults(Connection, results);
                form.Show();
            }
            catch (ODException exception)
            {
                PresentOneDriveException(exception);
            }
            ShowWork(false);
        }
Beispiel #5
0
 private async void getChangesHereToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var result = await Connection.ViewChangesAsync(this.CurrentFolder.ItemReference(), ViewChangesOptions.Default);
         FormSyncResults results = new FormSyncResults(Connection, result);
         results.Show();
     }
     catch (ODException ex)
     {
         PresentOneDriveException(ex);
     }
 }
        private async void getDriveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var defaultDrive = await Connection.GetDrive();

            FormSyncResults display = new FormSyncResults(Connection, defaultDrive);
            display.Show();

        }