private void createResume() { try { if (m_LoggedIn) { string resumePath = createFilePath(); string profilePicturePath = FacebookEngine.Instance.DownloadProfilePhoto(); this.commandButtonCreateCv.Enabled = false; m_pdf = new PdfDocumentFile(profilePicturePath, resumePath, m_CurrentUserInformation); commandButtonCreateCv.Enabled = true; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void resumeButton_Click(object sender, EventArgs e) { try { if (m_LoggedIn) { string resumePath = createFilePath(); string profilePicturePath = FacebookEngine.Instance.DownloadProfilePhoto(); this.ButtonResume.Enabled = false; m_pdf = new PdfDocumentFile(profilePicturePath, resumePath, m_CurrentUserInformation); buttonSendToMail.Enabled = true; ButtonResume.Enabled = true; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }