版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
-.z.报告容应包括以下容(单面打印不少于10页,统一封面见下页):1.程序系统设计思路2.程序系统结构的框架图3.功能模块和类的设计以及数据库设计(模块功能说明(如函数功能、入口及出口参数说明,函数调用关系描述等),类的属性与方法说明与类间关系)4.主要算法流程图5.关键源代码编程步骤6.采用的测试过程与测试(数据调试方法,测试结果的分析与讨论,测试过程中遇到的主要问题及采取的解决措施)7.运行结果分析和总结8.参考资料课程设计评分由以下几部分组成:平时考勤;培训老师对提交的项目评分;实验报告分东华理工大学长江学院C*课程设计报告题目:万能播放器**:6班级:1530501:方新盛摘要本文主要是开发了一款简单的万能播放器。可以播放三种格式的jpg图片、wmv视频文件、htm网址。包括该播放器实现了的基本功能包括:1.音频视频文件的打开、添加到菜单、媒体的播放、音量大小的调节、播放时间的拖动、暂停播放、停止。2图片的播放速度、透明度、手动或者自动的调节3htm网址的播放,使之成为一款简易的媒体播放设备,能够完美的播放市面上大多数的音频、视频文件。在程序设计中,系统开发平台为Windows7操作系统,程序设计环境采用visualstdio。在程序设计中,程序通过调试运行,初步实现了设计目标,本程序是基于C*集成开发环境以及access数据库、利用各种控件实现媒体播放的功能的,除了基本的播放控制外,还具有多文件自动顺序循环播放、全屏播放、静音等实用功能。关键字:播放器登入界面数据库目录1.程序系统设计思路2.程序系统结构的框架图3.功能模块和类的设计以及数据库设计(模块功能说明(如函数功能、入口及出4.口参数说明,函数调用关系描述等),类的属性与方法说明与类间关系)--5.主要算法流程图6.采用的测试过程与测试(数据调试方法,测试结果的分析与讨论,测试过程中遇到的主要问题及采取的解决措施)7.运行结果分析和总结8.参考资料1.程序系统设计思路参照VisualC*.NET所学知识以及老师所做的示,首先做出万能播放器播放图片视频网址的界面,实现音频视频文件的打开、添加到菜单、媒体的播放、音量大小的调节、播放时间的拖动、暂停播放、停止的控件,再做出登入界面,建立数据库,利用数据库access设置出登入名字密码,最终实现代码的调试运行。2.程序系统结构的框架图3.功能模块和类的设计以及数据库设计(模块功能说明(如函数功能、入口及出口参数说明,函数调用关系描述等),类的属性与方法说明与类间关系)功能界面:类的属性说明:4.主要算法流程图5.关键源代码编程步骤namespaceWPlay_1班16_方新盛{partialclassFormLogin{///<summary>///Requireddesignervariable.///</summary>privateSystem.ponentModel.IContainerponents=null;///<summary>///Cleanupanyresourcesbeingused.///</summary>///<paramname="disposing">trueifmanagedresourcesshouldbedisposed;otherwise,false.</param>protectedoverridevoidDispose(booldisposing){if(disposing&&(ponents!=null)){ponents.Dispose();}base.Dispose(disposing);}*regionWindowsFormDesignergeneratedcode///<summary>///RequiredmethodforDesignersupport-donotmodify///thecontentsofthismethodwiththecodeeditor.///</summary>privatevoidInitializeponent(){this.ponents=newSystem.ponentModel.Container();this.label1=newSystem.Windows.Forms.Label();this.label2=newSystem.Windows.Forms.Label();this.label3=newSystem.Windows.Forms.Label();this.te*tBo*uname=newSystem.Windows.Forms.Te*tBo*();this.te*tBo*pwd=newSystem.Windows.Forms.Te*tBo*();this.buttonLogin=newSystem.Windows.Forms.Button();this.buttonReset=newSystem.Windows.Forms.Button();this.buttonE*it=newSystem.Windows.Forms.Button();this.boBo*role=newSystem.Windows.Forms.boBo*();this.timer1=newSystem.Windows.Forms.Timer(this.ponents);this.timer2=newSystem.Windows.Forms.Timer(this.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.TabInde*=0;this.label1.Te*t="用户名:";////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.TabInde*=1;this.label2.Te*t="密码:";////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.TabInde*=2;this.label3.Te*t="角色:";////te*tBo*uname//this.te*tBo*uname.Location=newSystem.Drawing.Point(138,40);this.te*tBo*uname.Name="te*tBo*uname";this.te*tBo*uname.Size=newSystem.Drawing.Size(221,30);this.te*tBo*uname.TabInde*=3;////te*tBo*pwd//this.te*tBo*pwd.Location=newSystem.Drawing.Point(138,83);this.te*tBo*pwd.Name="te*tBo*pwd";this.te*tBo*pwd.Size=newSystem.Drawing.Size(221,30);this.te*tBo*pwd.TabInde*=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.TabInde*=6;this.buttonLogin.Te*t="登陆";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.TabInde*=7;this.buttonReset.Te*t="重置";this.buttonReset.UseVisualStyleBackColor=false;this.buttonReset.Click+=newSystem.EventHandler(this.buttonReset_Click);////buttonE*it//this.buttonE*it.BackColor=System.Drawing.Color.White;this.buttonE*it.ForeColor=System.Drawing.Color.FromArgb(((int)(((byte)(128)))),((int)(((byte)(255)))),((int)(((byte)(255)))));this.buttonE*it.Location=newSystem.Drawing.Point(368,238);this.buttonE*it.Name="buttonE*it";this.buttonE*it.Size=newSystem.Drawing.Size(91,38);this.buttonE*it.TabInde*=8;this.buttonE*it.Te*t="退出";this.buttonE*it.UseVisualStyleBackColor=false;this.buttonE*it.Click+=newSystem.EventHandler(this.buttonE*it_Click);////boBo*role//this.boBo*role.AutopleteCustomSource.AddRange(newstring[]{"普通用户","管理员","超级管理员"});this.boBo*role.FormattingEnabled=true;this.boBo*role.Location=newSystem.Drawing.Point(138,130);this.boBo*role.Name="boBo*role";this.boBo*role.Size=newSystem.Drawing.Size(221,28);this.boBo*role.TabInde*=9;this.boBo*role.Te*t="普通用户";////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(this.boBo*role);this.Controls.Add(this.buttonE*it);this.Controls.Add(this.buttonReset);this.Controls.Add(this.buttonLogin);this.Controls.Add(this.te*tBo*pwd);this.Controls.Add(this.te*tBo*uname);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.Te*t="登陆";this.Load+=newSystem.EventHandler(this.FormLogin_Load);this.ResumeLayout(false);this.PerformLayout();}*endregionprivateSystem.Windows.Forms.Labellabel1;privateSystem.Windows.Forms.Labellabel2;privateSystem.Windows.Forms.Labellabel3;privateSystem.Windows.Forms.Te*tBo*te*tBo*uname;privateSystem.Windows.Forms.Te*tBo*te*tBo*pwd;privateSystem.Windows.Forms.ButtonbuttonLogin;privateSystem.Windows.Forms.ButtonbuttonReset;privateSystem.Windows.Forms.ButtonbuttonE*it;privateSystem.Windows.Forms.boBo*boBo*role;privateSystem.Windows.Forms.Timertimer1;privateSystem.Windows.Forms.Timertimer2;}}usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Te*t;usingSystem.Threading.Tasks;//引入数据库命名空间usingSystem.Data.OleDb;namespaceWPlay_1班16_方新盛{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";//创建命令,执行语句OleDbmandcmd=newOleDbmand();cmd.Connection=con;cmd.mandTe*t="select*fromtuserswhereuname='"+name+"'andpwd='"+pwd+"'";con.Open();//出错!objectgetResult=cmd.E*ecuteScalar();//3.返回结果if(getResult!=null){returntrue;}else{returnfalse;}}}}7.运行结果分析和总结登入界面运行界面总结:经过的4天的课程设计,让我受益匪浅,给我收获最大的是我觉得很多工作需要我去摸索和探讨,要不怕吃苦,勇于激流勇进,有的工作虽然单挑又重复,但这是磨练意志最有效的方法,我告诫自己要认真完成,对每项实训任务都要他看成是对自己的一次考核,做到每一件事的过程中遇到困难,一定要争取不抛弃,不放弃,坚持“战斗”,只要希望还在,胜利一定属于我们。我们这次实训的容是“万能播放器”,首先要感陪伴我们4天对我们精心指导的老师,帮助我们在实训过程中解决了很多我们解决不了的问题,让我们能继续的完成接下来的容和让我们的实训成果有了圆满的成功。在学习的过程中并不是一帆风顺的,在这之中,因为要操作的东西很多,有时错一步,后面的结果就无法显示,而自己的计算机又太差,根本检查不出来是哪里出了错!这时候,老师都会耐心的过来帮助我,我很感老师也很感学校能安排这么优秀的老师来教我们!还有就是团队的力量,对于一个大的软件系统,不是一个人就能完成的,他需要小组成员之间的团结协作,尽管一开始我们小组之间团员的意见不是很统一,但大家各抒己见,吧自己的想
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年光建一体化科技公司物资与设备台账管理制度
- 2026春贵州贵阳市观山湖区第七中学招临聘教师6人备考题库附答案详解(培优b卷)
- 2025年湖南铁路科技职业技术学院辅导员考试题库附答案
- 2025年北京公务员考试(行政职业能力测验)综合试题及答案
- (2025年)急危重症护理学题库及答案
- 2026江苏南京大学化学学院科研人员招聘备考题库有答案详解
- 2026江苏南京大学医学院技术管理招聘备考题库及参考答案详解一套
- 2026江苏南京大学医学院技术管理招聘备考题库含答案详解(巩固)
- 2026中国呼叫中心的人工智能行业前景展望与运营效益预测报告
- 2026年叉车安全法考试题库及参考答案一套
- 2026年齐齐哈尔高等师范专科学校单招职业技能测试题库必考题
- 输变电工程安全教育课件
- 物业项目综合服务方案
- 胖东来管理制度全公开执行标准
- 2025-2026学年北京市西城区初二(上期)期末考试物理试卷(含答案)
- 书法培训班安全制度
- 企业管理 华为会议接待全流程手册SOP
- 供水企业制度流程规范
- 框架柱混凝土浇筑施工方案(完整版)
- 电厂危化品安全培训课件
- 酸马奶加工技术
评论
0/150
提交评论