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(); + } } }