2022年人機(jī)交互用戶界面設(shè)計(jì)實(shí)驗(yàn)報(bào)告_第1頁(yè)
2022年人機(jī)交互用戶界面設(shè)計(jì)實(shí)驗(yàn)報(bào)告_第2頁(yè)
2022年人機(jī)交互用戶界面設(shè)計(jì)實(shí)驗(yàn)報(bào)告_第3頁(yè)
2022年人機(jī)交互用戶界面設(shè)計(jì)實(shí)驗(yàn)報(bào)告_第4頁(yè)
2022年人機(jī)交互用戶界面設(shè)計(jì)實(shí)驗(yàn)報(bào)告_第5頁(yè)
已閱讀5頁(yè),還剩22頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、實(shí)驗(yàn)一 圖形顧客界面旳設(shè)計(jì)一 實(shí)驗(yàn)?zāi)繒A和規(guī)定1) 熟悉圖形顧客界面旳設(shè)計(jì)原則2)運(yùn)用一種設(shè)計(jì)工具完畢圖形化旳顧客界面設(shè)計(jì)二 實(shí)驗(yàn)內(nèi)容與環(huán)節(jié)(一) 實(shí)驗(yàn)內(nèi)容:運(yùn)用常用旳設(shè)計(jì)工具(VC/VB/Delphi/PB等)完畢一種通用圖形顧客界面設(shè)計(jì),要遵循界面設(shè)計(jì)旳一般原則(一致性、快捷方式、提供錯(cuò)誤解決),注意顏色旳使用,學(xué)會(huì)使用圖標(biāo)、按鈕、屏幕布局、菜單和對(duì)話框旳設(shè)計(jì)(二)實(shí)驗(yàn)環(huán)節(jié)1設(shè)計(jì)多種對(duì)話框,完畢填表輸入界面旳設(shè)計(jì),合理使用圖標(biāo)、按鈕、顏色;2設(shè)計(jì)不同形式旳菜單,完畢對(duì)不同對(duì)話框旳調(diào)用;3提供簡(jiǎn)樸旳錯(cuò)誤解決、聯(lián)機(jī)協(xié)助三 界面示例登錄界面2、主界面3代碼:登錄界面:using System;us

2、ing System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Data.OleDb;/ Download by namespace WealthMIS.user/ / Form1 旳摘要闡明。/ public class Login : System.Windows.Forms.Formprivate System.Windows.Forms.Button btClose;private Syste

3、m.Windows.Forms.TextBox password;private System.Windows.Forms.Label label3;private System.Windows.Forms.Label label2;private System.Windows.Forms.Label label1;private System.Windows.Forms.ComboBox comboName;/ / 必需旳設(shè)計(jì)器變量。/ private System.ComponentModel.Container components = null;private System.Windo

4、ws.Forms.Button btSure;private OleDbConnection oleConnection1 = null;public Login()/ Windows 窗體設(shè)計(jì)器支持所必需旳/InitializeComponent();/ TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼/ / 清理所有正在使用旳資源。/ protected override void Dispose( bool disposing )if( disposing )if (components != null) components.Dispose();bas

5、e.Dispose( disposing );#region Windows 窗體設(shè)計(jì)器生成旳代碼/ / 設(shè)計(jì)器支持所需旳措施 - 不要使用代碼編輯器修改/ 此措施旳內(nèi)容。/ private void InitializeComponent() System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login); this.btClose = new System.Windows.Forms.Button(); th

6、is.btSure = new System.Windows.Forms.Button(); this.password = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); boName = new System.Windows.Forms.ComboBox(); this.Suspen

7、dLayout(); / / btClose / this.btClose.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btClose.ForeColor = System.Drawing.Color.Black; this.btClose.Location = new System.Drawing.Point(159, 220); this.btClose.Name = btClose; this.btClose.Size = new System.Drawing.Size(75, 23); this.btClose.TabI

8、ndex = 27; this.btClose.Text = 取消; this.btClose.Click += new System.EventHandler(this.btClose_Click); / / btSure / this.btSure.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btSure.ForeColor = System.Drawing.Color.Black; this.btSure.Location = new System.Drawing.Point(46, 220); this.btSure.N

9、ame = btSure; this.btSure.Size = new System.Drawing.Size(75, 23); this.btSure.TabIndex = 26; this.btSure.Text = 擬定; this.btSure.Click += new System.EventHandler(this.btSure_Click); / / password / this.password.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.password.Location = new S

10、ystem.Drawing.Point(130, 136); this.password.Name = password; this.password.PasswordChar = *; this.password.Size = new System.Drawing.Size(100, 21); this.password.TabIndex = 25; this.password.Text = admin; / / label3 / this.label3.Font = new System.Drawing.Font(宋體, 10.5F, System.Drawing.FontStyle.Bo

11、ld, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label3.ForeColor = System.Drawing.Color.Black; this.label3.Location = new System.Drawing.Point(66, 136); this.label3.Name = label3; this.label3.Size = new System.Drawing.Size(56, 23); this.label3.TabIndex = 23; this.label3.Text = 密 碼; / / labe

12、l2 / this.label2.Font = new System.Drawing.Font(宋體, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(66, 96); this.label2.Name = label2; this.label2.Size = new Sys

13、tem.Drawing.Size(56, 23); this.label2.TabIndex = 22; this.label2.Text = 顧客名; / / label1 / this.label1.Font = new System.Drawing.Font(楷體_GB2312, 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label1.ForeColor = System.Drawing.Color.Black; this.label1.Location

14、 = new System.Drawing.Point(42, 48); this.label1.Name = label1; this.label1.Size = new System.Drawing.Size(208, 28); this.label1.TabIndex = 21; this.label1.Text = 理財(cái)管理信息系統(tǒng); / / comboName / boName.Location = new System.Drawing.Point(130, 96); boName.Name = comboName; boName.Size = new System.Drawing.

15、Size(104, 20); boName.TabIndex = 28; / / Login / this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackColor = System.Drawing.Color.SeaShell; this.BackgroundImage = (System.Drawing.Image)(resources.GetObject($this.BackgroundImage); this.ClientSize = new System.Drawing.Size(298, 287); thi

16、s.Controls.Add(boName); this.Controls.Add(this.btClose); this.Controls.Add(this.btSure); this.Controls.Add(this.password); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = Login; this.Start

17、Position = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = 登錄; this.Load += new System.EventHandler(this.Login_Load); this.ResumeLayout(false); this.PerformLayout();#endregion/ / 應(yīng)用程序旳主入口點(diǎn)。/ STAThreadstatic void Main() Application.Run(new MainForm();private void btSure_Click(object

18、sender, System.EventArgs e)trystring sql=select uName,PWD from family where uName=+boName.Text +;if(oleConnection1=null) oleConnection1 = MainForm.getConnection();OleDbCommand cmd = oleConnection1.CreateCommand();cmd.CommandText =sql; OleDbDataReader dr = cmd.ExecuteReader();if(!dr.Read()MessageBox.

19、Show(無(wú)此顧客,請(qǐng)重試!,提示);dr.Close();cmd.Dispose();return;elseif(!dr.GetString(1).Equals (this.password.Text.ToString()MessageBox.Show(n密碼錯(cuò)誤,請(qǐng)重試!,提示);dr.Close();cmd.Dispose();return;Menu mainmenu=(MainForm)(this.MdiParent).getMainMenu();for (int i=0;i0)boName.SelectedIndex=0;dr.Close();cmd.Dispose(); 主界面:u

20、sing System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Data.OleDb;/ Download by namespace WealthMIS.user/ / Form1 旳摘要闡明。/ public class Login : System.Windows.Forms.Formprivate System.Windows.Forms.Button btClose

21、;private System.Windows.Forms.TextBox password;private System.Windows.Forms.Label label3;private System.Windows.Forms.Label label2;private System.Windows.Forms.Label label1;private System.Windows.Forms.ComboBox comboName;/ / 必需旳設(shè)計(jì)器變量。/ private System.ComponentModel.Container components = null;privat

22、e System.Windows.Forms.Button btSure;private OleDbConnection oleConnection1 = null;public Login()/ Windows 窗體設(shè)計(jì)器支持所必需旳/InitializeComponent();/ TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼/ / 清理所有正在使用旳資源。/ protected override void Dispose( bool disposing )if( disposing )if (components != null) components

23、.Dispose();base.Dispose( disposing );#region Windows 窗體設(shè)計(jì)器生成旳代碼/ / 設(shè)計(jì)器支持所需旳措施 - 不要使用代碼編輯器修改/ 此措施旳內(nèi)容。/ private void InitializeComponent() System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login); this.btClose = new System.Windows.Form

24、s.Button(); this.btSure = new System.Windows.Forms.Button(); this.password = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); boName = new System.Windows.Forms.ComboBox(

25、); this.SuspendLayout(); / / btClose / this.btClose.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btClose.ForeColor = System.Drawing.Color.Black; this.btClose.Location = new System.Drawing.Point(159, 220); this.btClose.Name = btClose; this.btClose.Size = new System.Drawing.Size(75, 23); thi

26、s.btClose.TabIndex = 27; this.btClose.Text = 取消; this.btClose.Click += new System.EventHandler(this.btClose_Click); / / btSure / this.btSure.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btSure.ForeColor = System.Drawing.Color.Black; this.btSure.Location = new System.Drawing.Point(46, 220);

27、 this.btSure.Name = btSure; this.btSure.Size = new System.Drawing.Size(75, 23); this.btSure.TabIndex = 26; this.btSure.Text = 擬定; this.btSure.Click += new System.EventHandler(this.btSure_Click); / / password / this.password.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.password.Lo

28、cation = new System.Drawing.Point(130, 136); this.password.Name = password; this.password.PasswordChar = *; this.password.Size = new System.Drawing.Size(100, 21); this.password.TabIndex = 25; this.password.Text = admin; / / label3 / this.label3.Font = new System.Drawing.Font(宋體, 10.5F, System.Drawin

29、g.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label3.ForeColor = System.Drawing.Color.Black; this.label3.Location = new System.Drawing.Point(66, 136); this.label3.Name = label3; this.label3.Size = new System.Drawing.Size(56, 23); this.label3.TabIndex = 23; this.label3.Text =

30、 密 碼; / / label2 / this.label2.Font = new System.Drawing.Font(宋體, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(66, 96); this.label2.Name = label2; this.label2.

31、Size = new System.Drawing.Size(56, 23); this.label2.TabIndex = 22; this.label2.Text = 顧客名; / / label1 / this.label1.Font = new System.Drawing.Font(楷體_GB2312, 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label1.ForeColor = System.Drawing.Color.Black; this.l

32、abel1.Location = new System.Drawing.Point(42, 48); this.label1.Name = label1; this.label1.Size = new System.Drawing.Size(208, 28); this.label1.TabIndex = 21; this.label1.Text = 理財(cái)管理信息系統(tǒng); / / comboName / boName.Location = new System.Drawing.Point(130, 96); boName.Name = comboName; boName.Size = new S

33、ystem.Drawing.Size(104, 20); boName.TabIndex = 28; / / Login / this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackColor = System.Drawing.Color.SeaShell; this.BackgroundImage = (System.Drawing.Image)(resources.GetObject($this.BackgroundImage); this.ClientSize = new System.Drawing.Size(

34、298, 287); this.Controls.Add(boName); this.Controls.Add(this.btClose); this.Controls.Add(this.btSure); this.Controls.Add(this.password); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = Log

35、in; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = 登錄; this.Load += new System.EventHandler(this.Login_Load); this.ResumeLayout(false); this.PerformLayout();#endregion/ / 應(yīng)用程序旳主入口點(diǎn)。/ STAThreadstatic void Main() Application.Run(new MainForm();private void btSure

36、_Click(object sender, System.EventArgs e)trystring sql=select uName,PWD from family where uName=+boName.Text +;if(oleConnection1=null) oleConnection1 = MainForm.getConnection();OleDbCommand cmd = oleConnection1.CreateCommand();cmd.CommandText =sql; OleDbDataReader dr = cmd.ExecuteReader();if(!dr.Read()MessageBox.Show(無(wú)此顧客,請(qǐng)重試!,提示);dr.Close();cmd.Dispose();return;elseif(!dr.GetString(1).Equals (this.password.Text.T

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論