diff --git a/.vs/DeskHubSharp/v15/.suo b/.vs/DeskHubSharp/v15/.suo index cfdef91..56e92d6 100644 Binary files a/.vs/DeskHubSharp/v15/.suo and b/.vs/DeskHubSharp/v15/.suo differ diff --git a/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide index dada7b2..38364c7 100644 Binary files a/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide and b/.vs/DeskHubSharp/v15/Server/sqlite3/storage.ide differ diff --git a/ClassDiagram.pdf b/ClassDiagram.pdf new file mode 100644 index 0000000..6c19e34 Binary files /dev/null and b/ClassDiagram.pdf differ diff --git a/DeskHubSharp/BusinessLayer/EmailBLL.cs b/DeskHubSharp/BusinessLayer/EmailBLL.cs index d72f7c6..f83e86d 100644 --- a/DeskHubSharp/BusinessLayer/EmailBLL.cs +++ b/DeskHubSharp/BusinessLayer/EmailBLL.cs @@ -24,6 +24,10 @@ namespace DeskHubSharp _emailText = emailText; } + /// + /// Checks to see if Email is valid to send + /// + /// private bool IsValidated() { if (_name == "") @@ -54,6 +58,9 @@ namespace DeskHubSharp return true; } + /// + /// Creates message for user to send + /// public void CreateMessage() { if (IsValidated()) @@ -75,7 +82,6 @@ namespace DeskHubSharp using (var client = new SmtpClient()) { client.Connect("smtp.gmail.com", 465, SecureSocketOptions.SslOnConnect); - // change credentials client.Authenticate(email.FromEmail, email.Password); client.Send(message); client.Disconnect(true); diff --git a/DeskHubSharp/ClassDiagram1.cd b/DeskHubSharp/ClassDiagram1.cd index 7b89419..14d5e9b 100644 --- a/DeskHubSharp/ClassDiagram1.cd +++ b/DeskHubSharp/ClassDiagram1.cd @@ -1,2 +1,148 @@  - \ No newline at end of file + + + + + AAAABAAAAAQAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAA= + AboutWindow.xaml.cs + + + + + + + AAAIhAAAAAQAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAA= + DetailWindow.xaml.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAA= + ErrorWindow.xaml.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAEA= + FeedbackWindow.xaml.cs + + + + + + + AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + HelpWindow.xaml.cs + + + + + + + AAAAhAAAAAAAAAAAQCAQAAAAAAQAAgAAAIAwBEAAAAA= + MainWindow.xaml.cs + + + + + + + AAAAAAAAAAQAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAA= + SearchWindow.xaml.cs + + + + + + + gAAAAgAAAAAEAAAgAAAAAAAAAAAAAAAAAAAAAEAAAAA= + DAL\ApiDataService.cs + + + + + + + + + + + + Models\Branch.cs + + + + + QAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAA= + Models\Branch.cs + + + + + + AAAAIAAAAAAAAAAAAAIAAIAAAAAAAACAEAAAAAAAAAA= + BusinessLayer\EmailBLL.cs + + + + + + ACAAAAAAAAAAAAAAAAAEAAAAAAAcAAAAAAAAAAAAAAA= + Models\License.cs + + + + + + BGAAAAAAAAAAoAAQAAAAIAAAgAAJAAIUAgAAAAgAMgA= + Models\Owner.cs + + + + + + BCIwgQSAIRCAkB8B4OwJIEAEyiANIQFYKRKI4AgFngw= + Models\RepoDetail.cs + + + + + + AAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + BusinessLayer\RepoList.cs + + + + + + AAAAAAgAAAAgAAAgAgAAAAAACADAAAAAAAAAAAAAAAA= + BusinessLayer\Request.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAQAAAAAIAAAAA= + Models\RequestList.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAA= + Models\Sort.cs + + + + + + gAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAA= + DAL\IDataService.cs + + + + \ No newline at end of file diff --git a/DeskHubSharp/DAL/ApiDataService.cs b/DeskHubSharp/DAL/ApiDataService.cs index bbfde1b..22788c2 100644 --- a/DeskHubSharp/DAL/ApiDataService.cs +++ b/DeskHubSharp/DAL/ApiDataService.cs @@ -48,15 +48,6 @@ namespace DeskHubSharp var x = response.Content; var deserialized = JsonConvert.DeserializeObject>(x); - //ObservableCollection test = new ObservableCollection() - //{ - // new RepoDetail() - // { - // Login = "John", - // Password = "pw" - // } - //}; - if (deserialized.Count == 0) { throw new Exception(); diff --git a/DeskHubSharp/MainWindow.xaml.cs b/DeskHubSharp/MainWindow.xaml.cs index 9c9955b..3899f89 100644 --- a/DeskHubSharp/MainWindow.xaml.cs +++ b/DeskHubSharp/MainWindow.xaml.cs @@ -24,7 +24,6 @@ namespace DeskHubSharp private ObservableCollection _repoDetail; private User _userDetail; private Request _request; - private RepoInfo _repoInfo; public MainWindow() { @@ -130,9 +129,9 @@ namespace DeskHubSharp } if (sortTerm == "Least to most Stars") { - // TODO: There's a bug in here var sortedList = _repoDetail.OrderBy(c => c.stargazers_count).ToList(); ListBox.ItemsSource = sortedList.Select(x => x.full_name); + } if (sortTerm == "Least to most Forks") { @@ -149,9 +148,6 @@ namespace DeskHubSharp { ShowErrorMessage("A user has not been searched. Please try again."); } - - - } private void btn_searchrepo_Click(object sender, RoutedEventArgs e) diff --git a/DeskHubSharp/Models/Email.cs b/DeskHubSharp/Models/Email.cs index e80132e..58498f3 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 = "IhaveanAMDRX480"; + private string _passwordEmail = "IhaveanAMDRX580"; public string Password { diff --git a/DeskHubSharp/Models/RequestList.cs b/DeskHubSharp/Models/RequestList.cs index 73903a1..56ab6a5 100644 --- a/DeskHubSharp/Models/RequestList.cs +++ b/DeskHubSharp/Models/RequestList.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; namespace DeskHubSharp { - // TODO: The RequestList class is called from code behind, fix it public class RequestList { ///