Browse Source

Adds all users in friends list to lstUsers

master
jrtechs 8 years ago
parent
commit
123e3bee1e
2 changed files with 15 additions and 0 deletions
  1. +1
    -0
      Skype History Viewer/Form1.Designer.cs
  2. +14
    -0
      Skype History Viewer/Form1.cs

+ 1
- 0
Skype History Viewer/Form1.Designer.cs View File

@ -92,6 +92,7 @@
this.cmdClear.TabIndex = 5; this.cmdClear.TabIndex = 5;
this.cmdClear.Text = "Clear"; this.cmdClear.Text = "Clear";
this.cmdClear.UseVisualStyleBackColor = true; this.cmdClear.UseVisualStyleBackColor = true;
this.cmdClear.Click += new System.EventHandler(this.cmdClear_Click);
// //
// chTime // chTime
// //

+ 14
- 0
Skype History Viewer/Form1.cs View File

@ -51,6 +51,15 @@ namespace Skype_History_Viewer
{ {
//attaches the program to skype //attaches the program to skype
skype.Attach(); skype.Attach();
//adds all users to lstUsers
if(!connected)
{
foreach (User user in skype.Friends)
{
lstUsers.Items.Add(user.FullName);
}
}
return true; return true;
} }
catch catch
@ -82,5 +91,10 @@ namespace Skype_History_Viewer
} }
} }
private void cmdClear_Click(object sender, EventArgs e)
{
lstChat.Items.Clear();
}
} }
} }

Loading…
Cancel
Save