mirror of
https://github.com/RaySollium99/MSNPSharp.git
synced 2025-09-03 21:57:44 -04:00
50 lines
No EOL
1 KiB
C#
50 lines
No EOL
1 KiB
C#
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();
|
|
}
|
|
}
|
|
} |