C#課程設(shè)計(jì)報(bào)告要求--精選文檔_第1頁(yè)
C#課程設(shè)計(jì)報(bào)告要求--精選文檔_第2頁(yè)
已閱讀5頁(yè),還剩12頁(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、報(bào)告內(nèi)容應(yīng)包括以下內(nèi)容(單面打印不少于10頁(yè),統(tǒng)一封面見(jiàn)下頁(yè)):1程序系統(tǒng)設(shè)計(jì)思路2程序系統(tǒng)結(jié)構(gòu)的框架圖3功能模塊和類的設(shè)計(jì)以及數(shù)據(jù)庫(kù)設(shè)計(jì)(模塊功能說(shuō)明(如函數(shù)功能、入口及出口參數(shù)說(shuō)明,函數(shù)調(diào)用關(guān)系描述等),類的屬性與方法說(shuō)明與類間關(guān)系)4主要算法流程圖5關(guān)鍵源代碼編程步驟6采用的測(cè)試過(guò)程與測(cè)試(數(shù)據(jù)調(diào)試方法,測(cè)試結(jié)果的分析與討論,測(cè)試過(guò)程中遇到的主要問(wèn)題及采取的解決措施)7運(yùn)行結(jié)果分析和總結(jié)8參考資料課程設(shè)計(jì)評(píng)分由以下幾部分組成:平時(shí)考勤;培訓(xùn)老師對(duì)提交的項(xiàng)目評(píng)分;實(shí)驗(yàn)報(bào)告分東華理工大學(xué)長(zhǎng)江學(xué)院C#課程設(shè)計(jì)報(bào)告題目:萬(wàn)能播放器學(xué)號(hào):201530050116班級(jí):1530501姓名:方新盛摘要

2、本文主要是開(kāi)發(fā)了一款簡(jiǎn)單的萬(wàn)能播放器??梢圆シ湃N格式的jpg圖片、wmv視頻文件、htm網(wǎng)址。包括該播放器實(shí)現(xiàn)了的基本功能包括:1.音頻視頻文件的打開(kāi)、添加到菜單、媒體的播放、音量大小的調(diào)節(jié)、播放時(shí)間的拖動(dòng)、暫停播放、停止。2圖片的播放速度、透明度、手動(dòng)或者自動(dòng)的調(diào)節(jié)3htm網(wǎng)址的播放,使之成為一款簡(jiǎn)易的媒體播放設(shè)備,能夠完美的播放市面上大多數(shù)的音頻、視頻文件。在程序設(shè)計(jì)中,系統(tǒng)開(kāi)發(fā)平臺(tái)為Windows 7操作系統(tǒng),程序設(shè)計(jì)環(huán)境采用visual stdio。在程序設(shè)計(jì)中,程序通過(guò)調(diào)試運(yùn)行,初步實(shí)現(xiàn)了設(shè)計(jì)目標(biāo),本程序是基于C#集成開(kāi)發(fā)環(huán)境以及access數(shù)據(jù)庫(kù)、利用各種控件實(shí)現(xiàn)媒體播

3、放的功能的,除了基本的播放控制外,還具有多文件自動(dòng)順序循環(huán)播放、全屏播放、靜音等實(shí)用功能。關(guān)鍵字:播放器 登入界面 數(shù)據(jù)庫(kù) 目錄1.程序系統(tǒng)設(shè)計(jì)思路2.程序系統(tǒng)結(jié)構(gòu)的框架圖3.功能模塊和類的設(shè)計(jì)以及數(shù)據(jù)庫(kù)設(shè)計(jì)(模塊功能說(shuō)明(如函數(shù)功能、入口及出4.口參數(shù)說(shuō)明,函數(shù)調(diào)用關(guān)系描述等),類的屬性與方法說(shuō)明與類間關(guān)系)-5.主要算法流程圖6. 采用的測(cè)試過(guò)程與測(cè)試(數(shù)據(jù)調(diào)試方法,測(cè)試結(jié)果的分析與討論,測(cè)試過(guò)程中遇到的主要問(wèn)題及采取的解決措施)7. 運(yùn)行結(jié)果分析和總結(jié)8參考資料1.程序系統(tǒng)設(shè)計(jì)思路參照Visual C#.NET所學(xué)知識(shí)以及老師所做的示范,首先做出萬(wàn)能播放器播放圖片視頻網(wǎng)址的界面,實(shí)現(xiàn)音頻

4、視頻文件的打開(kāi)、添加到菜單、媒體的播放、音量大小的調(diào)節(jié)、播放時(shí)間的拖動(dòng)、暫停播放、停止的控件,再做出登入界面,建立數(shù)據(jù)庫(kù),利用數(shù)據(jù)庫(kù)access設(shè)置出登入名字密碼,最終實(shí)現(xiàn)代碼的調(diào)試運(yùn)行。2.程序系統(tǒng)結(jié)構(gòu)的框架圖3功能模塊和類的設(shè)計(jì)以及數(shù)據(jù)庫(kù)設(shè)計(jì)(模塊功能說(shuō)明(如函數(shù)功能、入口及出口參數(shù)說(shuō)明,函數(shù)調(diào)用關(guān)系描述等),類的屬性與方法說(shuō)明與類間關(guān)系)功能界面:類的屬性說(shuō)明:4主要算法流程圖5關(guān)鍵源代碼編程步驟namespace WPlay_1班16_方新盛 partial class FormLogin / <summary> / Required designer variable.

5、/ </summary> private System.ComponentModel.IContainer components = null; / <summary> / Clean up any resources being used. / </summary> / <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dis

6、pose(bool disposing) if (disposing && (components != null) components.Dispose(); base.Dispose(disposing); #region Windows Form Designer generated code / <summary> / Required method for Designer support - do not modify / the contents of this method with the code editor. / </summary&g

7、t; private void InitializeComponent() ponents = new System.ComponentModel.Container(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.textBoxuname = new System.Windows.Forms.TextBox(); this.textBoxp

8、wd = new System.Windows.Forms.TextBox(); this.buttonLogin = new System.Windows.Forms.Button(); this.buttonReset = new System.Windows.Forms.Button(); this.buttonExit = new System.Windows.Forms.Button(); boBoxrole = new System.Windows.Forms.ComboBox(); this.timer1 = new System.Windows.Forms.Timer(pone

9、nts); this.timer2 = new System.Windows.Forms.Timer(ponents); this.SuspendLayout(); / / label1 / this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(63, 43); this.label1.Name = "label1" this.label1.Size = new System.Drawing.Size(89, 20); this.label1.TabIndex = 0; th

10、is.label1.Text = "用戶名:" / / label2 / this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(63, 86); this.label2.Name = "label2" this.label2.Size = new System.Drawing.Size(89, 20); this.label2.TabIndex = 1; this.label2.Text = "密 碼:" / / label3 / th

11、is.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(63, 133); this.label3.Name = "label3" this.label3.Size = new System.Drawing.Size(89, 20); this.label3.TabIndex = 2; this.label3.Text = "角 色:" / / textBoxuname / this.textBoxuname.Location = new System.Draw

12、ing.Point(138, 40); this.textBoxuname.Name = "textBoxuname" this.textBoxuname.Size = new System.Drawing.Size(221, 30); this.textBoxuname.TabIndex = 3; / / textBoxpwd / this.textBoxpwd.Location = new System.Drawing.Point(138, 83); this.textBoxpwd.Name = "textBoxpwd" this.textBoxpw

13、d.Size = new System.Drawing.Size(221, 30); this.textBoxpwd.TabIndex = 4; / / buttonLogin / this.buttonLogin.BackColor = System.Drawing.Color.White; this.buttonLogin.FlatAppearance.BorderColor = System.Drawing.Color.Red; this.buttonLogin.ForeColor = System.Drawing.Color.FromArgb(int)(byte)(128), (int

14、)(byte)(255), (int)(byte)(255); this.buttonLogin.Location = new System.Drawing.Point(34, 238); this.buttonLogin.Name = "buttonLogin" this.buttonLogin.Size = new System.Drawing.Size(88, 38); this.buttonLogin.TabIndex = 6; this.buttonLogin.Text = "登陸" this.buttonLogin.UseVisualStyl

15、eBackColor = false; this.buttonLogin.Click += new System.EventHandler(this.buttonLogin_Click); / / buttonReset / this.buttonReset.BackColor = System.Drawing.Color.White; this.buttonReset.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(int)(byte)(0), (int)(byte)(192), (int)(byte)(192); thi

16、s.buttonReset.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(int)(byte)(128), (int)(byte)(255), (int)(byte)(255); this.buttonReset.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(int)(byte)(128), (int)(byte)(255), (int)(byte)(255); this.buttonReset.Font = new Sys

17、tem.Drawing.Font("微軟雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (byte)(134); this.buttonReset.ForeColor = System.Drawing.Color.FromArgb(int)(byte)(128), (int)(byte)(255), (int)(byte)(255); this.buttonReset.Location = new System.Drawing.Point(194, 238); this.

18、buttonReset.Name = "buttonReset" this.buttonReset.Size = new System.Drawing.Size(96, 38); this.buttonReset.TabIndex = 7; this.buttonReset.Text = "重置" this.buttonReset.UseVisualStyleBackColor = false; this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click); / / b

19、uttonExit / this.buttonExit.BackColor = System.Drawing.Color.White; this.buttonExit.ForeColor = System.Drawing.Color.FromArgb(int)(byte)(128), (int)(byte)(255), (int)(byte)(255); this.buttonExit.Location = new System.Drawing.Point(368, 238); this.buttonExit.Name = "buttonExit" this.buttonE

20、xit.Size = new System.Drawing.Size(91, 38); this.buttonExit.TabIndex = 8; this.buttonExit.Text = "退出" this.buttonExit.UseVisualStyleBackColor = false; this.buttonExit.Click += new System.EventHandler(this.buttonExit_Click); / / comboBoxrole / boBoxrole.AutoCompleteCustomSource.AddRange(new

21、 string "普通用戶", "管理員", "超級(jí)管理員"); boBoxrole.FormattingEnabled = true; boBoxrole.Location = new System.Drawing.Point(138, 130); boBoxrole.Name = "comboBoxrole" boBoxrole.Size = new System.Drawing.Size(221, 28); boBoxrole.TabIndex = 9; boBoxrole.Text = "普通用戶

22、" / / timer1 / this.timer1.Enabled = true; this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); / / timer2 / this.timer2.Enabled = true; this.timer2.Tick += new System.EventHandler(this.timer2_Tick); / / FormLogin / this.AutoScaleDimensions = new System.Dr

23、awing.SizeF(10F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.LightGray; this.ClientSize = new System.Drawing.Size(491, 453); this.Controls.Add(boBoxrole); this.Controls.Add(this.buttonExit); this.Controls.Add(this.buttonReset); this.Contr

24、ols.Add(this.buttonLogin); this.Controls.Add(this.textBoxpwd); this.Controls.Add(this.textBoxuname); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Font = new System.Drawing.Font("宋體", 15F, System.Drawing.FontStyle.Regular, System.Drawi

25、ng.GraphicsUnit.Point, (byte)(134); this.ForeColor = System.Drawing.Color.Black; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Margin = new System.Windows.Forms.Padding(5); this.Name = "FormLogin" this.StartPosition = System.Windows.Forms.FormStartPosition.CenterSc

26、reen; this.Text = "登陸" this.Load += new System.EventHandler(this.FormLogin_Load); this.ResumeLayout(false); this.PerformLayout(); #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windo

27、ws.Forms.TextBox textBoxuname; private System.Windows.Forms.TextBox textBoxpwd; private System.Windows.Forms.Button buttonLogin; private System.Windows.Forms.Button buttonReset; private System.Windows.Forms.Button buttonExit; private System.Windows.Forms.ComboBox comboBoxrole; private System.Windows

28、.Forms.Timer timer1; private System.Windows.Forms.Timer timer2; using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;/引入數(shù)據(jù)庫(kù)命名空間using System.Data.OleDb;namespace WPlay_1班16_方新盛 class DbopAccess static public bool Login(string name,string pwd)

29、/步驟 /1.創(chuàng)建連接,連接數(shù)據(jù)庫(kù) OleDbConnection con = new OleDbConnection(); con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:達(dá)內(nèi)C#課程設(shè)計(jì)C#WPlay_1班16_方新盛WPlay_1班16_方新盛binDebuguserdb.accdb;Persist Security Info=True" /創(chuàng)建命令,執(zhí)行語(yǔ)句 OleDbCommand cmd = new OleDbCommand(); cmd.Connection = c

30、on; cmd.CommandText = "select * from tusers where uname='"+name +"' and pwd='"+pwd+"'" con.Open();/出錯(cuò)! object getResult = cmd.ExecuteScalar(); /3.返回結(jié)果 if (getResult!=null) return true; else return false; 7運(yùn)行結(jié)果分析和總結(jié)登入界面運(yùn)行界面總結(jié):經(jīng)過(guò)的4天的課程設(shè)計(jì),讓我受益匪淺,給我收獲最大的是我覺(jué)得

31、很多工作需要我去摸索和探討,要不怕吃苦,勇于激流勇進(jìn),有的工作雖然單挑又重復(fù),但這是磨練意志最有效的方法,我告誡自己要認(rèn)真完成,對(duì)每項(xiàng)實(shí)訓(xùn)任務(wù)都要他看成是對(duì)自己的一次考核,做到每一件事的過(guò)程中遇到困難,一定要爭(zhēng)取不拋棄,不放棄,堅(jiān)持“戰(zhàn)斗”,只要希望還在,勝利一定屬于我們。 我們這次實(shí)訓(xùn)的內(nèi)容是“萬(wàn)能播放器”,首先要感謝陪伴我們4天對(duì)我們精心指導(dǎo)的老師,幫助我們?cè)趯?shí)訓(xùn)過(guò)程中解決了很多我們解決不了的問(wèn)題,讓我們能繼續(xù)的完成接下來(lái)的內(nèi)容和讓我們的實(shí)訓(xùn)成果有了圓滿的成功。在學(xué)習(xí)的過(guò)程中并不是一帆風(fēng)順的,在這之中,因?yàn)橐僮鞯臇|西很多,有時(shí)錯(cuò)一步,后面的結(jié)果就無(wú)法顯示,而自己的計(jì)算機(jī)又太差,根本檢查不出來(lái)是哪里出了錯(cuò)!這時(shí)候,老師都會(huì)耐心的過(guò)來(lái)幫助我,我很感謝老師也很感謝學(xué)校能安排這么優(yōu)秀的老師來(lái)教我們! 還有就是團(tuán)隊(duì)的力量,對(duì)于一個(gè)大的軟件系統(tǒng),不是一個(gè)人就能完成的,他需要小組成員之間的團(tuán)結(jié)協(xié)作 ,盡管一開(kāi)始我們小組之間團(tuán)員的意見(jiàn)不是很統(tǒng)一,但大家各抒己見(jiàn),吧自己的想法提出來(lái),然后集思廣益,把大家認(rèn)為最好的意見(jiàn)說(shuō)出來(lái),最后終于完成了“萬(wàn)能播放器”的實(shí)訓(xùn)

溫馨提示

  • 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)論