mirror of
https://github.com/RaySollium99/MSNPSharp.git
synced 2025-09-05 22:37:44 -04:00
Add the files
This commit is contained in:
parent
f52694709e
commit
50aabc8afc
312 changed files with 95444 additions and 0 deletions
51
Example/ReverseAddedForm.cs
Normal file
51
Example/ReverseAddedForm.cs
Normal file
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using MSNPSharp;
|
||||
|
||||
namespace MSNPSharpClient
|
||||
{
|
||||
public partial class ReverseAddedForm : Form
|
||||
{
|
||||
public ReverseAddedForm(Contact contact)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Text = String.Format(Text, contact.Mail);
|
||||
lblAdded.Text = String.Format(lblAdded.Text, contact.Name + " (" + contact.Mail + ")");
|
||||
}
|
||||
|
||||
public bool Blocked
|
||||
{
|
||||
get
|
||||
{
|
||||
return rbBlock.Checked;
|
||||
}
|
||||
}
|
||||
|
||||
public bool AddToContactList
|
||||
{
|
||||
get
|
||||
{
|
||||
return cbContactList.Checked;
|
||||
}
|
||||
}
|
||||
|
||||
private void rbBlock_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (rbBlock.Checked)
|
||||
{
|
||||
cbContactList.Checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue