diff --git a/.vs/DeskHubSharp/v15/.suo b/.vs/DeskHubSharp/v15/.suo index 14e42e6..cfdef91 100644 Binary files a/.vs/DeskHubSharp/v15/.suo and b/.vs/DeskHubSharp/v15/.suo differ diff --git a/DeskHubSharp/BusinessLayer/EmailBLL.cs b/DeskHubSharp/BusinessLayer/EmailBLL.cs index 325a183..d72f7c6 100644 --- a/DeskHubSharp/BusinessLayer/EmailBLL.cs +++ b/DeskHubSharp/BusinessLayer/EmailBLL.cs @@ -42,6 +42,14 @@ namespace DeskHubSharp err.ShowDialog(); return false; } + if (_emailText == "") + { + ErrorWindow err = new ErrorWindow(); + err.lbl_title.Content = "Oops."; + err.txtblk_error.Text = "Please fill in your email."; + err.ShowDialog(); + return false; + } return true; } @@ -61,7 +69,7 @@ namespace DeskHubSharp message.Subject = $"{_name} requires your attention!"; message.Body = new TextPart("plain") { - Text = _message + _emailText + Text = _message + " " + _emailText }; using (var client = new SmtpClient()) diff --git a/DeskHubSharp/ClassDiagram1.cd b/DeskHubSharp/ClassDiagram1.cd new file mode 100644 index 0000000..7b89419 --- /dev/null +++ b/DeskHubSharp/ClassDiagram1.cd @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/DeskHubSharp/DeskHubSharp.csproj b/DeskHubSharp/DeskHubSharp.csproj index b3cef2a..e25d345 100644 --- a/DeskHubSharp/DeskHubSharp.csproj +++ b/DeskHubSharp/DeskHubSharp.csproj @@ -155,6 +155,7 @@ Resources.Designer.cs + SettingsSingleFileGenerator diff --git a/DeskHubSharp/Models/Email.cs b/DeskHubSharp/Models/Email.cs index d7133ae..e80132e 100644 --- a/DeskHubSharp/Models/Email.cs +++ b/DeskHubSharp/Models/Email.cs @@ -4,7 +4,7 @@ namespace DeskHubSharp { private string _toEmail = "wjmiller2016@gmail.com"; private string _fromEmail = "wjmiller2016@gmail.com"; - private string _passwordEmail = "password"; + private string _passwordEmail = "IhaveanAMDRX480"; public string Password { diff --git a/DeskHubSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/DeskHubSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index a501ef5..5918c2c 100644 Binary files a/DeskHubSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/DeskHubSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/DeskHubSharp/obj/Debug/DeskHubSharp_MarkupCompile.i.cache b/DeskHubSharp/obj/Debug/DeskHubSharp_MarkupCompile.i.cache index de29267..b00bd68 100644 --- a/DeskHubSharp/obj/Debug/DeskHubSharp_MarkupCompile.i.cache +++ b/DeskHubSharp/obj/Debug/DeskHubSharp_MarkupCompile.i.cache @@ -4,16 +4,16 @@ winexe C# .cs -C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\obj\Debug\ +C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\obj\Debug\ DeskHubSharp none false DEBUG;TRACE -C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\App.xaml +C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml 7-86569338 -312052675278 -20-856998346 +31-1209486194 +20415715258 AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml; True