Warcraft system, the call of different worlds

Source: Internet
Author: User

Warcraft system, the call of different worlds

// Click the event private void btnclose_Click (object sender, EventArgs e) triggered by the x button {// exit the entire Application. exit ();} // click the event private void lblregister_Click (object sender, EventArgs e) triggered by the Registration button {// hide the current form this. hide (); FrmRegist frm = new FrmRegist (); frm. fl = this; frm. show () ;}// click the event private void btnlogin_Click (object sender, EventArgs e) triggered by the logon button {if (ProvingInfo () = true) {// defines the value string email = txtemail in the variable Receiving text box. te Xt; string password = txtpassword. Text; bool happy = false; foreach (LoginInfo item in LoginInfo. array) {if (item! = Null) {if (item. email. equals (email) & item. password. equals (password) {happy = true; // close the current form this. hide (); // display the main form FrmMain frm = new FrmMain (); frm. loginame = item. name; frm. show (); break ;}}if (happy = false) {MessageBox. show ("Logon Failed! Check whether the email address and password are correct ") ;}}// verify that the entered information is public bool ProvingInfo () {if (txtemail. text. trim (). equals (string. empty) {MessageBox. show ("Please enter email"); this.txt email. focus (); return false;} else if (txtpassword. text. trim (). equals (string. empty) {MessageBox. show ("Enter password"); this.txt password. focus (); return false;} else {return true ;}// Load event private void FrmLogin_Load (object sender, EventArgs e) {LoginInfo info1 = new LoginInfo (); info1.Name = "Weeping Stars"; info1.Id = "123123131313131"; info1.Email = "lsxc@163.com"; info1.Password = "pwd @ 123"; for (int I = 0; I <LoginInfo. array. length; I ++) {if (LoginInfo. array [I] = null) {LoginInfo. array [I] = info1; break ;}}

Partial class FrmRegist {// Required designer variable. private System. componentModel. IContainer components = null; // Clean up any resources being used. /// <param name = "disposing"> true if managed resources shocould be disposed; otherwise, false. </param> protected override void Dispose (bool disposing) {if (disposing & (components! = Null) {components. dispose ();} base. dispose (disposing);} # region Windows Form Designer generated code // Required method for Designer support-do not modify // the contents of this method with the code editor. private void InitializeComponent () {this. lblname = new System. windows. forms. label (); this. lblcid = new System. windows. forms. label (); this. lblemail = new System. windows. forms. label (); this. lblpassword = new System. windows. forms. label (); this.txt name = new System. windows. forms. textBox (); this.txt cid = new System. windows. forms. textBox (); this.txt email = new System. windows. forms. textBox (); this.txt password = new System. windows. forms. textBox (); this. lblok = new System. windows. forms. label (); this. lblkoone = new System. windows. forms. label (); this.txt one = new System. windows. forms. textBox (); this.txt okone = new System. windows. forms. textBox (); this. label6 = new System. windows. forms. label (); this. label7 = new System. windows. forms. label (); this. btnregin = new System. windows. forms. button (); this. btnclose = new System. windows. forms. button (); this. suspendLayout (); // lblname this. lblname. autoSize = true; this. lblname. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblname. location = new System. drawing. points (88,196); this. lblname. name = "lblname"; this. lblname. size = new System. drawing. size (59, 19); this. lblname. tabIndex = 0; this. lblname. text = "name:"; // lblcid this. lblcid. autoSize = true; this. lblcid. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblcid. location = new System. drawing. points (8,231); this. lblcid. name = "lblcid"; this. lblcid. size = new System. drawing. size (119, 19); this. lblcid. tabIndex = 0; this. lblcid. text = "ID number:"; // lblemail this. lblemail. autoSize = true; this. lblemail. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblemail. location = new System. drawing. points (48,274); this. lblemail. name = "lblemail"; this. lblemail. size = new System. drawing. size (99, 19); this. lblemail. tabIndex = 0; this. lblemail. text = "email address:"; // lblpassword // this. lblpassword. autoSize = true; this. lblpassword. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblpassword. location = new System. drawing. points (88,320); this. lblpassword. name = "lblpassword"; this. lblpassword. size = new System. drawing. size (59, 19); this. lblpassword. tabIndex = 0; this. lblpassword. text = "Password:"; // txtname // this.txt name. location = new System. drawing. point (154,193); this.txt name. name = "txtname"; this.txt name. size = new System. drawing. size (190, 21); this.txt name. tabIndex = 1; // txtcid // this.txt cid. location = new System. drawing. point (153,234); this.txt cid. name = "txtcid"; this.txt cid. size = new System. drawing. size (190, 21); this.txt cid. tabIndex = 1; // txtemail // this.txt email. location = new System. drawing. point (153,277); this.txt email. name = "txtemail"; this.txt email. size = new System. drawing. size (190, 21); this.txt email. tabIndex = 1; this.txt email. textChanged + = new System. eventHandler (this. textBox3_TextChanged); // txtpassword // this.txt password. location = new System. drawing. point (153,320); this.txt password. name = "txtpassword"; this.txt password. size = new System. drawing. size (190, 21); this.txt password. tabIndex = 1; // lblok // this. lblok. autoSize = true; this. lblok. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblok. location = new System. drawing. points (366,279); this. lblok. name = "lblok"; this. lblok. size = new System. drawing. size (99, 19); this. lblok. tabIndex = 0; this. lblok. text = "Confirm input:"; // lblkoone // this. lblkoone. autoSize = true; this. lblkoone. font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. lblkoone. location = new System. drawing. points (366,320); this. lblkoone. name = "lblkoone"; this. lblkoone. size = new System. drawing. size (99, 19); this. lblkoone. tabIndex = 0; this. lblkoone. text = "Confirm input:"; // txtone // this.txt one. location = new System. drawing. point (471,282); this.txt one. name = "txtone"; this.txt one. size = new System. drawing. size (190, 21); this.txt one. tabIndex = 1; this.txt one. textChanged + = new System. eventHandler (this. textBox3_TextChanged); // txtokone // this.txt okone. location = new System. drawing. time (471,320); this.txt okone. name = "txtokone"; this.txt okone. size = new System. drawing. size (190, 21); this.txt okone. tabIndex = 1; this.txt okone. textChanged + = new System. eventHandler (this. textBox3_TextChanged); // label6 // this. label6.AutoSize = true; this. label6.Font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. label6.Location = new System. drawing. points (98,377); this. label6.Name = "label6"; this. label6.Size = new System. drawing. size (99, 19); this. label6.TabIndex = 0; this. label6.Text = ":"; this. label6.Click + = new System. eventHandler (this. label6_Click); // label7 // this. label7.AutoSize = true; this. label7.Font = new System. drawing. font ("", 14.25F, System. drawing. fontStyle. regular, System. drawing. graphicsUnit. point, (byte) (134); this. label7.ForeColor = System. drawing. color. red; this. label7.Location = new System. drawing. points (216,377); this. label7.Name = "label7"; this. label7.Size = new System. drawing. size (419, 19); this. label7.TabIndex = 0; this. label7.Text = "<Starcraft: wings of freedom TM> suitable for players over the age of 12"; // btnregin // this. btnregin. backColor = System. drawing. color. black; this. btnregin. flatStyle = System. windows. forms. flatStyle. popup; this. btnregin. foreColor = System. drawing. color. transparent; this. btnregin. location = new System. drawing. points (188,432); this. btnregin. name = "btnregin"; this. btnregin. size = new System. drawing. size (122, 42); this. btnregin. tabIndex = 2; this. btnregin. text = "Free register war network pass"; this. btnregin. useVisualStyleBackColor = false; this. btnregin. click + = new System. eventHandler (this. btnregin_Click); // btnclose // this. btnclose. backColor = System. drawing. color. black; this. btnclose. flatStyle = System. windows. forms. flatStyle. popup; this. btnclose. foreColor = System. drawing. color. transparent; this. btnclose. location = new System. drawing. points (370,432); this. btnclose. name = "btnclose"; this. btnclose. size = new System. drawing. size (60, 42); this. btnclose. tabIndex = 2; this. btnclose. text = "cancel"; this. btnclose. useVisualStyleBackColor = false; this. btnclose. click + = new System. eventHandler (this. btnclose_Click); // FrmRegist // this. autoScaleDimensions = new System. drawing. sizeF (6F, 12F); this. autoScaleMode = System. windows. forms. autoScaleMode. font; this. backgroundImage = global: Game. properties. resources. warcraft registration icon; this. backgroundImageLayout = System. windows. forms. imageLayout. none; this. clientSize = new System. drawing. size (796,486); this. controls. add (this. btnclose); this. controls. add (this. btnregin); registrant password); this.Controls.Add(this.txt okone); this.Controls.Add(this.txt one); this.Controls.Add(this.txt email); this.Controls.Add(this.txt); registrant name); this. controls. add (this. label6); this. controls. add (this. label7); this. controls. add (this. lblpassword); this. controls. add (this. lblkoone); this. controls. add (this. lblok); this. controls. add (this. lblemail); this. controls. add (this. lblcid); this. controls. add (this. lblname); this. formBorderStyle = System. windows. forms. formBorderStyle. none; this. name = "FrmRegist"; this. text = "FrmRegist"; this. load + = new System. eventHandler (this. frmRegist_Load); this. resumeLayout (false); this. extends mlayout () ;}# endregion private System. windows. forms. label lblname; private System. windows. forms. label lblcid; private System. windows. forms. label lblemail; private System. windows. forms. label lblpassword; private System. windows. forms. textBox txtname; private System. windows. forms. textBox txtcid; private System. windows. forms. textBox txtemail; private System. windows. forms. textBox txtpassword; private System. windows. forms. label lblok; private System. windows. forms. label lblkoone; private System. windows. forms. textBox txtone; private System. windows. forms. textBox txtokone; private System. windows. forms. label label6; private System. windows. forms. label label7; private System. windows. forms. button btnregin; private System. windows. forms. button btnclose ;}

  

Partial class FrmMain {// Required designer variable. private System. componentModel. IContainer components = null; // Clean up any resources being used. /// <param name = "disposing"> true if managed resources shocould be disposed; otherwise, false. </param> protected override void Dispose (bool disposing) {if (disposing & (components! = Null) {components. dispose ();} base. dispose (disposing);} # region Windows Form Designer generated code // Required method for Designer support-do not modify // the contents of this method with the code editor. private void InitializeComponent () {this. suspendLayout (); // FrmMain this. autoScaleDimensions = new System. drawing. sizeF (6F, 12F); this. autoScaleMode = System. windows. forms. autoScaleMode. font; this. backgroundImage = global: Game. properties. resources. world of Warcraft homepage; this. clientSize = new System. drawing. size (993,531); this. formBorderStyle = System. windows. forms. formBorderStyle. none; this. name = "FrmMain"; this. text = "FrmMain"; this. load + = new System. eventHandler (this. frmMain_Load); this. resumeLayout (false);} # endregion}

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.