DocListNotifyIcon.ShowBalloonTip(BALLOON_TIMER, "Upload Error", "Error: unable to upload the file: '" + file + "'. It is not one of the valid types.", ToolTipIcon.Error);
lastToolTipWasUpload = false;
}
catch (Exception ex)
{
DocListNotifyIcon.ShowBalloonTip(BALLOON_TIMER, "Upload Error", "Error: unable to upload the file: '" + file + "'. " + ex.Message, ToolTipIcon.Error);
lastToolTipWasUpload = false;
}
}
/// <summary>
/// Uploads the file to Google Docs
/// </summary>
/// <param name="fileName">The file with path to upload</param>
/// <exception cref="ApplicationException">Thrown when user isn't logged in.</exception>
public void UploadFile(string fileName)
{
if (!loggedIn)
{
throw new ApplicationException("Need to be logged in to upload documents.");