From 123e3bee1e2be582cf5b0b5798352432cfb7b3f7 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Sun, 31 Jan 2016 08:44:47 -0500 Subject: [PATCH] Adds all users in friends list to lstUsers --- Skype History Viewer/Form1.Designer.cs | 1 + Skype History Viewer/Form1.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Skype History Viewer/Form1.Designer.cs b/Skype History Viewer/Form1.Designer.cs index 92d7de9..9ef89ca 100644 --- a/Skype History Viewer/Form1.Designer.cs +++ b/Skype History Viewer/Form1.Designer.cs @@ -92,6 +92,7 @@ this.cmdClear.TabIndex = 5; this.cmdClear.Text = "Clear"; this.cmdClear.UseVisualStyleBackColor = true; + this.cmdClear.Click += new System.EventHandler(this.cmdClear_Click); // // chTime // diff --git a/Skype History Viewer/Form1.cs b/Skype History Viewer/Form1.cs index fb3c7db..f7aff21 100644 --- a/Skype History Viewer/Form1.cs +++ b/Skype History Viewer/Form1.cs @@ -51,6 +51,15 @@ namespace Skype_History_Viewer { //attaches the program to skype skype.Attach(); + + //adds all users to lstUsers + if(!connected) + { + foreach (User user in skype.Friends) + { + lstUsers.Items.Add(user.FullName); + } + } return true; } catch @@ -82,5 +91,10 @@ namespace Skype_History_Viewer } } + + private void cmdClear_Click(object sender, EventArgs e) + { + lstChat.Items.Clear(); + } } }