国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開(kāi)發(fā)設(shè)計(jì) > 正文

深入.NET平臺(tái)和C#編程 第一章 概念+上機(jī)

2019-11-11 05:10:23
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
OOP:面向?qū)ο缶幊? S2S1:語(yǔ)法基礎(chǔ)++++++邏輯思維S2:面向?qū)ο笏季S+創(chuàng)新思維++++項(xiàng)目驅(qū)動(dòng)Y2:框架++++源碼++++++對(duì)整個(gè)真正的項(xiàng)目,全局的把控1.封裝:類(lèi)(屬性++方法)  私有字段封裝成共有的屬性2.泛型集合++++++重點(diǎn)3.xml解析技術(shù)4.IO流  +++++++--------------------------------------------------------------預(yù)習(xí)檢查:1.   .NET 框架的兩個(gè)主要組件是什么?   解析:   2.任何人    在任何地方      使用任何終端設(shè)備     服務(wù)3.前惠普ceo  卡莉·菲奧莉娜  艱難的抉擇hp   康柏合并李納斯  寫(xiě)的linux  Unix   MinuxGhost  安裝版FCL(Framework Class Library 框架類(lèi)型)4.CLR=========CLS(Common Language  Specfication  公共語(yǔ)言規(guī)范)+CTS(Common Type System 通用類(lèi)型系統(tǒng)) 基本框架類(lèi)::線程類(lèi) 5.WF:Work Flow :工作流  WCF:底層通信   HTTp    Ftp        WPF:更酷炫    Linq:是一種類(lèi)似于數(shù)據(jù)的能獲取數(shù)據(jù)的語(yǔ)言 from c in db.xxxx  6.類(lèi)庫(kù)一堆類(lèi)的集合  10個(gè)  dll神器:Reflector7.類(lèi)圖作用:清晰的反饋出類(lèi)結(jié)構(gòu)  :字段      屬性   方法  
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsapplication4{    public partial class denglu : Form    {        public denglu()        {            InitializeComponent();        }        public LoginInfo[] persons = new LoginInfo[10];              public void LoadData()        {            persons[0] = new LoginInfo();            persons[0].Name = "李小龍";            persons[0].PassWord = "1";            persons[0].Email = "lxl";            persons[0].Id = "001";            persons[1] = new LoginInfo();            persons[1].Name = "李小龍2";            persons[1].Password = "2";            persons[1].Email = "lxl2";            persons[1].Id = "002";            persons[2] = new LoginInfo();            persons[2].Name = "鞏俐";            persons[2].Password = "3";            persons[2].Email = "gl";            persons[2].Id = "003";        }        PRivate void label3_Click(object sender, EventArgs e)        { zhuce frm = new zhuce();            frm.mylogin = this;            frm.Show();            this.Visible = false;                   }        private void button1_Click(object sender, EventArgs e)        {            //if(textBox1.Text.Trim().Equals(null)||textBox2.Text.Trim().Equals(null)){            //    MessageBox.Show("用戶名或密碼不能為空", "提示");            //}            //LoadData();            //01.用戶會(huì)輸入用戶名和密碼            string email = textBox1.Text;            string pwd = textBox2.Text;            //02.將用戶輸入內(nèi)容與數(shù)組中的每一項(xiàng)對(duì)比,如果有匹配項(xiàng)目,登陸成功            bool flag = false;//登陸狀態(tài),默認(rèn)為失敗            foreach (LoginInfo item in persons)            {                if (item != null)                {                    //參與比較                    if (email.Equals(item.Email) && pwd.Equals(item.Password))                    /// if (email == item.Email && pwd == item.Password)                    {                        //證明用戶輸入的信息均正確,登陸成功                        flag = true;                        zhujiemian frm = new zhujiemian();                        frm.name = email;                        frm.textBox1.Text = "歡迎," + item.Name;                        frm.Show();                        break;                    }      } else if(email.Equals("") && pwd.Equals("")){                MessageBox.Show("用戶名或密碼不能為空","提示");            }     }                   if (!flag)            {                MessageBox.Show("用戶名或者密碼錯(cuò)誤!");            }                       //03.寫(xiě)一個(gè)方法來(lái)給數(shù)組中前三項(xiàng)賦值                    }        private void Form1_Load(object sender, EventArgs e)        {            LoadData();        }    }}
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4{    public partial class zhuce : Form    {        public zhuce()        {            InitializeComponent();        }        public denglu mylogin;        private void button1_Click(object sender, EventArgs e)        {            //01.非空驗(yàn)證自己判定下            //02.先構(gòu)造出一個(gè)LoginInfo對(duì)象  然后將LoginInfo對(duì)象添加到persons數(shù)組中            LoginInfo info = new LoginInfo();            info.Name = textBox1.Text;            info.Email = textBox3.Text;            info.Password = textBox4.Text;            info.Id = textBox2.Text;            //就是將info天際到數(shù)組中            //數(shù)組有10個(gè)位置,要把info扔到什么位置            for (int i = 0; i < mylogin.persons.Length; i++)            {                if (mylogin.persons[i] == null)                {                    mylogin.persons[i] = info;                    MessageBox.Show("注冊(cè)成功");                    mylogin.Visible = true;                    this.Close();                    break;                }            }        }        private void button2_Click(object sender, EventArgs e)        {            this.Close();        }    }}
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsApplication4{    public partial class zhujiemian : Form    {        public string name;        public zhujiemian()        {            InitializeComponent();        }        private void pictureBox1_Click(object sender, EventArgs e)        {            Application.Exit();        }        private void textBox1_TextChanged(object sender, EventArgs e)        {            this.Text = name;        }        private void Form3_Load(object sender, EventArgs e)        {        }    }}
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace WindowsFormsApplication4{   public class LoginInfo    {        //private string _email;        //private string _id;        //private string _name;        //private string _password;        //public string Email        //{        //    get        //    {        //        throw new System.NotImplementedException();        //    }        //    set        //    {        //    }        //}        //public string Id        //{        //    get        //    {        //        throw new System.NotImplementedException();        //    }        //    set        //    {        //    }        //}        //public string Name        //{        //    get        //    {        //        throw new System.NotImplementedException();        //    }        //    set        //    {        //    }        //}        //public string Password        //{        //    get        //    {        //        throw new System.NotImplementedException();        //    }        //    set        //    {        //    }        //}        public string Name { get; set; }        public string Id { get; set; }        public string Email { get; set; }        public string Password { get; set; }    }}
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 城步| 房产| 岚皋县| 隆林| 黄大仙区| 霍林郭勒市| 寿阳县| 大化| 潼关县| 长丰县| 刚察县| 石城县| 辰溪县| 大渡口区| 奈曼旗| 禹城市| 灌云县| 武定县| 綦江县| 抚州市| 岳池县| 东乡县| 鄯善县| 西城区| 林周县| 达拉特旗| 施秉县| 葫芦岛市| 彭山县| 宣武区| 垦利县| 凯里市| 郴州市| 南召县| 霞浦县| 永平县| 高密市| 玛沁县| 左权县| 晋宁县| 墨竹工卡县|