public MainWindow() { InitializeComponent(); //Si la DB n'existe pas ou n'est pas à jour on la crée/update using (var db = new DataAccessor()) { db.Database.Migrate(); } Debug.WriteLine(HardDriveTools.GetHashOfFirstDiskSerialNumber()); FRMContent.Navigate(peopleListingPage); }
public void SendMail() { message = new MailMessage(AddressFrom, AddressTo); message.Date = DateTime.Now; message.Subject = "Asking for a license"; htmlString = $@"<html> <body> <p>Hello, I'm asking for a license for the software with this seed : {HardDriveTools.GetFirstDiskSerialNumber()}</p> </body> </html> "; message.BodyHtml = htmlString; SmtpClient.SendOne(message); }