zoukankan      html  css  js  c++  java
  • wpf demo (gif , multithredading,httpwatch)

    Introduction

    the demo with GIF animation ,multithreading,and use httpwatch to get the url of flv file

    Background

    c# wpf httpwatch

    Points of Interest

    Did you learn anything interesting/fun/annoying while writing the code? Did you do anything particularly clever or wild or zany?

    History

    Keep a running update of any changes or improvements you've made here.

    the demo includes:

    gif animation in wpf

    multithreading in wpf

    use httpwatch to get the url of flv file 

    1.gif animation in wpf

    the first problem is how to show gif aninamation in wpf ?

    here I use a library called "GifImageLib". :) this is a prefect work! it works fine !

    2.multithreading in wpf

    the multithreading in wpf called "Dispatcher" . After I searched in msdn.I wrote the code for multithreading.

    Code

     this is BackgroundWorker demo.

       _backgroundWorker.DoWork+=new DoWorkEventHandler(DoWork);

    you can coding your work which needed long time.

     _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(FinsihWork);

    you can coding which you needed after the long time task.

    3.use httpwatch to get the url of flv file

    you can get the free httpwatch version from httpwatch.com . and you only need add com preference(httpwatch) to project

    the code I using c#


    Code

    Ok,finished

     中文版

  • 相关阅读:
    AIO系列文档(2)----TIO使用
    AIO系列文档(1)----图解ByteBuffer
    Dubbo+zookeeper构建高可用分布式集群(二)-集群部署
    Dubbo+zookeeper构建高可用分布式集群(一)-单机部署
    利用redis + lua解决抢红包高并发的问题
    使用SIP Servlet为Java EE添加语音功能
    Java互联网架构-直播互动平台高并发分布式架构应用设计
    搭建自己的SIP服务器:开源sip服务器opensips的搭建及终端TwInkle的使用
    SIP协议搭建电信级VOIP/IM运营平台--架构篇(sip集群)
    阿里分布式事务解决方案-GTS
  • 原文地址:https://www.cnblogs.com/conan77/p/1502656.html
Copyright © 2011-2022 走看看