Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
OTT exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MelHarbour committed Mar 10, 2017
1 parent e1f8f1c commit 68ecef8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions TimeNetSync/TimeNetSync/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,16 @@ orderby c.Bib

valueRange.Values = objlist.ToList<IList<object>>();

SpreadsheetsResource.ValuesResource.UpdateRequest update = service.Spreadsheets.Values.Update(valueRange, ViewModel.SpreadsheetId, ViewModel.RangeTarget);
update.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.RAW;
UpdateValuesResponse result2 = update.Execute();
try
{
SpreadsheetsResource.ValuesResource.UpdateRequest update = service.Spreadsheets.Values.Update(valueRange, ViewModel.SpreadsheetId, ViewModel.RangeTarget);
update.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.RAW;
UpdateValuesResponse result2 = update.Execute();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
}

0 comments on commit 68ecef8

Please sign in to comment.