private void btSave_Click(object sender, EventArgs e) { Curriculum curriculum = new Curriculum(); curriculum.Path = txtPath.Text; MessageBox.Show("O Arquivo foi salvo com sucesso!!!"); }
private void btnSend_Click(object sender, EventArgs e) { User user = User.GetInstance(); Criptografia crypt = new Criptografia(); Curriculum curriculum = Curriculum.GetInstance(); Email.Send(user.Email, txtEmailDest.Text, user.Name, txtTargetName.Text, txtSubject.Text, txtBody.Text, crypt.Decrypt(user.Password), curriculum.Path); }
public static Curriculum GetInstance() { if (_instance == null) { _instance = new Curriculum(); numberOfInstances++; } return(_instance); }