mirror of
https://github.com/RaySollium99/MSNPSharp.git
synced 2025-09-05 14:27:45 -04:00
Add the files
This commit is contained in:
parent
f52694709e
commit
50aabc8afc
312 changed files with 95444 additions and 0 deletions
50
Example/AddContactForm.cs
Normal file
50
Example/AddContactForm.cs
Normal file
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MSNPSharpClient
|
||||
{
|
||||
public partial class AddContactForm : Form
|
||||
{
|
||||
public AddContactForm(string account)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
if (!String.IsNullOrEmpty(account))
|
||||
{
|
||||
this.account = account;
|
||||
txtAccount.Text = account;
|
||||
}
|
||||
}
|
||||
|
||||
private string account;
|
||||
public string Account
|
||||
{
|
||||
get
|
||||
{
|
||||
return account;
|
||||
}
|
||||
}
|
||||
|
||||
private string invitationMessage;
|
||||
public string InvitationMessage
|
||||
{
|
||||
get
|
||||
{
|
||||
return invitationMessage;
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
account = txtAccount.Text;
|
||||
invitationMessage = txtInvitation.Text;
|
||||
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue