www.pudn.com > MyVR.rar > login.cs, change:2008-06-17,size:1409b


´╗┐using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
 
namespace MyVR 
{ 
    public partial class login : Form 
    { 
 
        // 
        public static Form form = null; 
 
        [STAThread] 
        static void Main() 
        { 
            Application.Run(new login ()); 
            if (form != null) Application.Run(form); 
        } 
 
 
      // 
        public login() 
        { 
            InitializeComponent(); 
        } 
        
        private void ok_Click(object sender, EventArgs e) 
        { 
            if (textBox1.Text == "2008" && textBox2.Text == "2008") 
            { 
               ///Program.form = new MainForm(); 
               // MainForm mf = new MainForm(); 
               // Program.form.Show(); 
                 
               // this.Close(); 
                //MainForm mf = new MainForm(); 
                //mf.Show (); 
                login.form = new MainForm(); 
                this.Close(); 
                
            } 
        } 
 
        private void quxiao_Click(object sender, EventArgs e) 
        { 
            this.Close(); 
        } 
 
        //private void textBox2_Enter(object sender, EventArgs e) 
        //{ 
        //    login.form = new MainForm(); 
        //    this.Close(); 
        //} 
 
    } 
}