zoukankan      html  css  js  c++  java
  • 第五次作业

    一、具体思路

    在Windows窗体中使用AxWindowsMediaPlayer控件然后用具体代码,实现音乐的播放暂停  具体OpenFileDialog类可以用来调用什么的

    二、代码实现

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
            OpenFileDialog openFile = new OpenFileDialog(); 
            private void button1_Click(object sender, EventArgs e)
            {
                openFile.ShowDialog();
            }
    
            private void button2_Click(object sender, EventArgs e)
            {
                axWindowsMediaPlayer1.URL = openFile.FileName;
            }
    
            private void button3_Click(object sender, EventArgs e)
            {
                axWindowsMediaPlayer1.close(); 
            }
    
            private void button4_Click(object sender, EventArgs e)

    三、测试

    四、psp分析

    PSP2.1 Personal Software Process Stages Time(h)
    Planning 计划  
    • Estimate 估计这个任务需要多长时间  20
    Development 开发  
    • Analysis 需求分析  0.5
    • Design Spec 生成设计文档

    7

    • Coding Standard 代码规范  1
    • Design 具体设计  1
    • Coding 具体代码  5
     • Code Review 代码复审 1
    • Text 测试  0.5
    Reporting 报告  
    • Test Report 测试报告  0.5
    • Size Measurement 计算工作量  0.5
    • Postmortem 事后总结  3

    五、 团队编程总结

    其实这个东西做起来不是太难只是要自己去总结一些东西,和去网上搜索资料这一方面比较困难,总结这一方面的代码哪一些改用不该用这方面 ,我们有一些争论,因为讨论一些用哪种方式播放时有些不同想法,还有看到别人做出来的东西更完善时,自己也想完善不过因为,自己有些松懈还有两人也不想做了所以就只写了一部分,因为刚开始让编写程序现在容易一些所以做起来还是比较顺手的。这次作业还是让我们有一点信心能做下去的,因为我们有想法完善自己的程序知道哪些方面的代码可以做

    六、团队分工

    我们两人都去找资料了,因为我写的代码比较少而且能完成这次作业所以就用我代码了所以 一人一半分都是五分

  • 相关阅读:
    leetcode 350. Intersection of Two Arrays II
    leetcode 278. First Bad Version
    leetcode 34. Find First and Last Position of Element in Sorted Array
    leetcode 54. Spiral Matrix
    leetcode 59. Spiral Matrix II
    leetcode 44. Wildcard Matching
    leetcode 10. Regular Expression Matching(正则表达式匹配)
    leetcode 174. Dungeon Game (地下城游戏)
    leetcode 36. Valid Sudoku
    Angular Elements
  • 原文地址:https://www.cnblogs.com/fei2/p/4946126.html
Copyright © 2011-2022 走看看