C#课程设计报告要求Word文档下载推荐.docx

上传人:b****8 文档编号:22232306 上传时间:2023-02-03 格式:DOCX 页数:19 大小:774.76KB
下载 相关 举报
C#课程设计报告要求Word文档下载推荐.docx_第1页
第1页 / 共19页
C#课程设计报告要求Word文档下载推荐.docx_第2页
第2页 / 共19页
C#课程设计报告要求Word文档下载推荐.docx_第3页
第3页 / 共19页
C#课程设计报告要求Word文档下载推荐.docx_第4页
第4页 / 共19页
C#课程设计报告要求Word文档下载推荐.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

C#课程设计报告要求Word文档下载推荐.docx

《C#课程设计报告要求Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《C#课程设计报告要求Word文档下载推荐.docx(19页珍藏版)》请在冰豆网上搜索。

C#课程设计报告要求Word文档下载推荐.docx

本文主要是开发了一款简单的万能播放器。

可以播放三种格式的jpg图片、wmv视频文件、htm网址。

包括该播放器实现了的基本功能包括:

1.音频视频文件的打开、添加到菜单、媒体的播放、音量大小的调节、播放时间的拖动、暂停播放、停止。

2图片的播放速度、透明度、手动或者自动的调节3htm网址的播放,使之成为一款简易的媒体播放设备,能够完美的播放市面上大多数的音频、视频文件。

在程序设计中,系统开发平台为Windows 

7操作系统,程序设计环境采用visualstdio。

在程序设计中,程序通过调试运行,初步实现了设计目标,本程序是基于C#集成开发环境以及access数据库、利用各种控件实现媒体播放的功能的,除了基本的播放控制外,还具有多文件自动顺序循环播放、全屏播放、静音等实用功能。

关键字:

播放器登入界面数据库

目录

1.程序系统设计思路

2.程序系统结构的框架图

3.功能模块和类的设计以及数据库设计(模块功能说明(如函数功能、入口及出4.口参数说明,函数调用关系描述等),类的属性与方法说明与类间关系)--

5.主要算法流程图

6.采用的测试过程与测试(数据调试方法,测试结果的分析与讨论,测试过程中遇到的主要问题及采取的解决措施)

7.运行结果分析和总结

参照VisualC#.NET所学知识以及老师所做的示范,首先做出万能播放器播放图片视频网址的界面,实现音频视频文件的打开、添加到菜单、媒体的播放、音量大小的调节、播放时间的拖动、暂停播放、停止的控件,再做出登入界面,建立数据库,利用数据库access设置出登入名字密码,最终实现代码的调试运行。

功能界面:

类的属性说明:

namespaceWPlay_1班16_方新盛

{

partialclassFormLogin

{

///<

summary>

///Requireddesignervariable.

/summary>

privateSystem.ComponentModel.IContainercomponents=null;

///Cleanupanyresourcesbeingused.

paramname="

disposing"

>

trueifmanagedresourcesshouldbedisposed;

otherwise,false.<

/param>

protectedoverridevoidDispose(booldisposing)

if(disposing&

&

(components!

=null))

components.Dispose();

}

base.Dispose(disposing);

#regionWindowsFormDesignergeneratedcode

///RequiredmethodforDesignersupport-donotmodify

///thecontentsofthismethodwiththecodeeditor.

privatevoidInitializeComponent()

ponents=newSystem.ComponentModel.Container();

this.label1=newSystem.Windows.Forms.Label();

this.label2=newSystem.Windows.Forms.Label();

this.label3=newSystem.Windows.Forms.Label();

this.textBoxuname=newSystem.Windows.Forms.TextBox();

this.textBoxpwd=newSystem.Windows.Forms.TextBox();

this.buttonLogin=newSystem.Windows.Forms.Button();

this.buttonReset=newSystem.Windows.Forms.Button();

this.buttonExit=newSystem.Windows.Forms.Button();

boBoxrole=newSystem.Windows.Forms.ComboBox();

this.timer1=newSystem.Windows.Forms.Timer(ponents);

this.timer2=newSystem.Windows.Forms.Timer(ponents);

this.SuspendLayout();

//

//label1

this.label1.AutoSize=true;

this.label1.Location=newSystem.Drawing.Point(63,43);

this.label1.Name="

label1"

;

this.label1.Size=newSystem.Drawing.Size(89,20);

this.label1.TabIndex=0;

this.label1.Text="

用户名:

"

//label2

this.label2.AutoSize=true;

this.label2.Location=newSystem.Drawing.Point(63,86);

this.label2.Name="

label2"

this.label2.Size=newSystem.Drawing.Size(89,20);

this.label2.TabIndex=1;

this.label2.Text="

密码:

//label3

this.label3.AutoSize=true;

this.label3.Location=newSystem.Drawing.Point(63,133);

this.label3.Name="

label3"

this.label3.Size=newSystem.Drawing.Size(89,20);

this.label3.TabIndex=2;

this.label3.Text="

角色:

//textBoxuname

this.textBoxuname.Location=newSystem.Drawing.Point(138,40);

this.textBoxuname.Name="

textBoxuname"

this.textBoxuname.Size=newSystem.Drawing.Size(221,30);

this.textBoxuname.TabIndex=3;

//textBoxpwd

this.textBoxpwd.Location=newSystem.Drawing.Point(138,83);

this.textBoxpwd.Name="

textBoxpwd"

this.textBoxpwd.Size=newSystem.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)(((byte)(255)))),((int)(((byte)(255)))));

this.buttonLogin.Location=newSystem.Drawing.Point(34,238);

this.buttonLogin.Name="

buttonLogin"

this.buttonLogin.Size=newSystem.Drawing.Size(88,38);

this.buttonLogin.TabIndex=6;

this.buttonLogin.Text="

登陆"

this.buttonLogin.UseVisualStyleBackColor=false;

this.buttonLogin.Click+=newSystem.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)))));

this.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=newSystem.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=newSystem.Drawing.Point(194,238);

this.buttonReset.Name="

buttonReset"

this.buttonReset.Size=newSystem.Drawing.Size(96,38);

this.buttonReset.TabIndex=7;

this.buttonReset.Text="

重置"

this.buttonReset.UseVisualStyleBackColor=false;

this.buttonReset.Click+=newSystem.EventHandler(this.buttonReset_Click);

//buttonExit

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=newSystem.Drawing.Point(368,238);

this.buttonExit.Name="

buttonExit"

this.buttonExit.Size=newSystem.Drawing.Size(91,38);

this.buttonExit.TabIndex=8;

this.buttonExit.Text="

退出"

this.buttonExit.UseVisualStyleBackColor=false;

this.buttonExit.Click+=newSystem.EventHandler(this.buttonExit_Click);

//comboBoxrole

boBoxrole.AutoCompleteCustomSource.AddRange(newstring[]{

"

普通用户"

管理员"

超级管理员"

});

boBoxrole.FormattingEnabled=true;

boBoxrole.Location=newSystem.Drawing.Point(138,130);

boBoxrole.Name="

comboBoxrole"

boBoxrole.Size=newSystem.Drawing.Size(221,28);

boBoxrole.TabIndex=9;

boBoxrole.Text="

//timer1

this.timer1.Enabled=true;

this.timer1.Interval=1000;

this.timer1.Tick+=newSystem.EventHandler(this.timer1_Tick);

//timer2

this.timer2.Enabled=true;

this.timer2.Tick+=newSystem.EventHandler(this.timer2_Tick);

//FormLogin

this.AutoScaleDimensions=newSystem.Drawing.SizeF(10F,20F);

this.AutoScaleMode=System.Windows.Forms.AutoScaleMode.Font;

this.BackColor=System.Drawing.Color.LightGray;

this.ClientSize=newSystem.Drawing.Size(491,453);

this.Controls.Add(boBoxrole);

this.Controls.Add(this.buttonExit);

this.Controls.Add(this.buttonReset);

this.Controls.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=newSystem.Drawing.Font("

宋体"

15F,System.Drawing.FontStyle.Regular,System.Drawing.GraphicsUnit.Point,((byte)(134)));

this.ForeColor=System.Drawing.Color.Black;

this.FormBorderStyle=System.Windows.Forms.FormBorderStyle.None;

this.Margin=newSystem.Windows.Forms.Padding(5);

this.Name="

FormLogin"

this.StartPosition=System.Windows.Forms.FormStartPosition.CenterScreen;

this.Text="

this.Load+=newSystem.EventHandler(this.FormLogin_Load);

this.ResumeLayout(false);

this.PerformLayout();

#endregion

privateSystem.Windows.Forms.Labellabel1;

privateSystem.Windows.Forms.Labellabel2;

privateSystem.Windows.Forms.Labellabel3;

privateSystem.Windows.Forms.TextBoxtextBoxuname;

privateSystem.Windows.Forms.TextBoxtextBoxpwd;

privateSystem.Windows.Forms.ButtonbuttonLogin;

privateSystem.Windows.Forms.ButtonbuttonReset;

privateSystem.Windows.Forms.ButtonbuttonExit;

privateSystem.Windows.Forms.ComboBoxcomboBoxrole;

privateSystem.Windows.Forms.Timertimer1;

privateSystem.Windows.Forms.Timertimer2;

}

usingSystem;

usingSystem.Collections.Generic;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Threading.Tasks;

//引入数据库命名空间

usingSystem.Data.OleDb;

classDbopAccess

staticpublicboolLogin(stringname,stringpwd)

//步骤

//1.创建连接,连接数据库

OleDbConnectioncon=newOleDbConnection();

con.ConnectionString=@"

Provider=Microsoft.ACE.OLEDB.12.0;

DataSource=F:

\达内C#\课程设计C#\WPlay_1班16_方新盛\WPlay_1班16_方新盛\bin\Debug\userdb.accdb;

PersistSecurityInfo=True"

//创建命令,执行语句

OleDbCommandcmd=newOleDbCommand();

cmd.Connection=con;

cmd.CommandText="

select*fromtuserswhereuname='

+name+"

'

andpwd='

+pwd+"

con.Open();

//出错!

objectgetResult=cmd.ExecuteScalar();

//3.返回结果

if(getResult!

=null)

returntrue;

else

returnfalse;

}

登入界面

运行界面

总结:

经过的4天的课程设计,让我受益匪浅,给我收获最大的是我觉得很多工作需要我去摸索和探讨,要不怕吃苦,勇于激流勇进,有的工作虽然单挑又重复,但这是磨练意志最有效的方法,我告诫自己要认真完成,对每项实训任务都要他看成是对自己的一次考核,做到每一件事的过程中遇到困难,一定要争取不抛弃,不放弃,坚持“战斗”,只要希望还在,胜利一定属于我们。

我们这次实训的内容是“万能播放器”,首先要感谢陪伴我们4天对我们精心指导的老师,帮助我们在实训过程中解决了很多我们解决不了的问题,让我们能继续的完成接下来的内容和让我们的实训成果有了圆满的成功。

在学习的过程中并不是一帆风顺的,在这之中,因为要操作的东西很多,有时错一步,后面的结果就无法显示,而自己的计算机又太差,根本检查不出来是哪里出了错!

这时候,老师都会耐心的过来帮助我,我很感谢老师也很感谢学校能安排这么优秀的老师来教我们!

还有就是团队的力量,对于一个大的软件系统,不是一个人就能完成的,他需要小组成

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1