www.pudn.com > IntMail.rar > FrmLogin.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 
{ 
    public partial class FrmLogin : Form 
    { 
        public FrmLogin() 
        { 
            InitializeComponent(); 
        } 
        int frmCount = 0; 
        private void button1_Click(object sender, EventArgs e) 
        { 
            frmCount = 1; 
            RegMail.FrmRegMailAddress _fmaddres = new IntMail.RegMail.FrmRegMailAddress(); 
            _fmaddres.Show(); 
            this.Close(); 
        } 
 
        private void button2_Click(object sender, EventArgs e) 
        { 
            Application.Exit(); 
        } 
 
        private void FrmLogin_FormClosing(object sender, FormClosingEventArgs e) 
        { 
            if (frmCount == 0) 
            { 
                Application.Exit(); 
            } 
        } 
    } 
}