www.pudn.com > IntMail.rar > FrmRegMailAddress.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace IntMail.RegMail
{
public partial class FrmRegMailAddress : Form
{
public FrmRegMailAddress()
{
InitializeComponent();
}
int frmCount = 0;
private void button2_Click(object sender, EventArgs e)
{
try
{
MailAddress.MailAddressD = textBox1.Text.Trim();
frmCount = 1;
FrmRegMailServer _fmserver = new FrmRegMailServer();
_fmserver.Show();
this.Close();
}
catch (Exception ex)
{
this.Close();
}
}
private void button3_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void FrmRegMailAddress_FormClosing(object sender, FormClosingEventArgs e)
{
if (frmCount == 0)
{
Application.Exit();
}
}
private void FrmRegMailAddress_Load(object sender, EventArgs e)
{
try
{
if (MailAddress.MailAddressD != null)
{
textBox1.Text = MailAddress.MailAddressD;
}
else
{
textBox1.Text = "";
}
}
catch (Exception ex)
{
textBox1.Text = "";
}
}
}
}