当前位置: 首页 > news >正文

网站开发有哪些服务器怎么把视频做成网页链接

网站开发有哪些服务器,怎么把视频做成网页链接,杭州网站建设设计制作,网站建设简介是什么意思第一步#xff1a;添加wpf窗口#xff1b;第二步#xff1a;在主窗体image的MouseLeftButtonUp事件中调用调试窗口#xff1b;StatusViewWindow svWindow new StatusViewWindow();svWindow.Show();第三步#xff1a;在主窗体中开个线程通过udp接收光电广开的数据#xf… 第一步添加wpf窗口第二步在主窗体image的MouseLeftButtonUp事件中调用调试窗口StatusViewWindow svWindow  new StatusViewWindow();svWindow.Show();第三步在主窗体中开个线程通过udp接收光电广开的数据Thread t3 new Thread(StartSwitchDataRevThread);//四个广电开关数据接受线程t3.Name StartSwitchDataRevThread;t3.Start();t3.IsBackground  true;private void StartSwitchDataRevThread(){try{Stopwatch elapsetime new Stopwatch();UdpClient client new UdpClient(8012);IPEndPoint endpoint new IPEndPoint(IPAddress.Parse(192.168.1.202), 8008);client.Client.ReceiveBufferSize 1024 * 1024;//默认值是8192while (true){Byte[] recv;recv client.Receive(ref endpoint);for (int i 0; i 4; i){switchSignal[i] recv[i 2];}switchList.Add(switchSignal);elapsetime.Restart();//计时开始if (switchDataWrite true){String switchDataPath Path.Combine(AppDomain.CurrentDomain.BaseDirectory, switchData);string stringData 0x BitConverter.ToString(recv).Replace(-, 0x).ToLower();stringData DateTime.Now.ToString(yyyy-MM-dd_HH:mm:ss:fff) stringData;StrWrite.strWrite(stringData, switchDataPath, switchDataFile.txt);}elapsetime.Stop();//计时结束Console.WriteLine(接收数据耗时 elapsetime.ElapsedMilliseconds.ToString(0000));}}catch (Exception ex){LogWrite.logWrite(ex.Message, ex.StackTrace);}}第四部在StatusViewWindow窗口定义一个10毫秒的定时器每隔十毫秒从主窗体获取一次光电开关的数据并显示到listBox1中Window x:ClassthzSoftware.StatusViewWindowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:thzSoftwaremc:IgnorabledTitleStatusViewWindow Height450 Width800 LoadedWindow_LoadedGrid ShowGridLinesFalse BackgroundLightCyan Grid.RowDefinitionsRowDefinition Height*/RowDefinitionRowDefinition Height*/RowDefinition/Grid.RowDefinitionsGrid.ColumnDefinitionsColumnDefinition Width*/ColumnDefinition Width*//Grid.ColumnDefinitionsListBox NamelistBox1 Grid.Row0 Grid.Column1 Grid.RowSpan2 BackgroundLightGray/Button NamebtnCtrl1 Content开始采集 FontSize30 Grid.Row0 Grid.Column0 BackgroundLightGray ClickBtnCtrl1_Click/Button NamebtnCtrl2 Content停止采集 FontSize30 Grid.Row1 Grid.Column0 BackgroundLightGray ClickBtnCtrl2_Click//Grid /Windowusing System; using System.Windows; using System.Windows.Threading;namespace thzSoftware {/// summary/// StatusViewWindow.xaml 的交互逻辑/// /summarypublic partial class StatusViewWindow : Window{public StatusViewWindow(){InitializeComponent();}Byte[] switchSignal new byte[4];DispatcherTimer StatusViewTimer;private void Window_Loaded(object sender, RoutedEventArgs e){StatusViewTimer new DispatcherTimer();StatusViewTimer.Interval TimeSpan.FromMilliseconds(10);StatusViewTimer.Tick StatusViewTimer_Tick;//加载事件敲tab键事件框架可以自己出来 }private void StatusViewTimer_Tick(object sender, EventArgs e){switchSignal thzModel.DataProcess.switchSignal;string stringData 0x BitConverter.ToString(switchSignal).Replace(-, 0x).ToLower();stringData DateTime.Now.ToString(yyyy-MM-dd_HH:mm:ss:fff) stringData;listBox1.Items.Add(stringData);}private void BtnCtrl1_Click(object sender, RoutedEventArgs e){listBox1.Items.Clear();StatusViewTimer.Start();}private void BtnCtrl2_Click(object sender, RoutedEventArgs e){StatusViewTimer.Stop();}} }运行结果如下
http://www.yutouwan.com/news/83528/

相关文章:

  • 福州营销网站建设技术产品开发项目管理全流程
  • 谁会在阿里云建网站M97 网站建设网络公司整站源码
  • 网站建设开发感悟做破解网站合法
  • 河南省住房城乡和建设厅网站南通市城乡和住房建设局网站
  • 赞叹天河网站建设公司重庆工程建设标准化信息网
  • 网站建设合同规范室内设计师的网站
  • 织梦网站后台空白怎么建设境外网站
  • 东营市两学一做考试网站网站前端工程师
  • asp网站镜像代码wordpress+手册主题
  • 企业建设网站作用wordpress主题雪人yeti1.9.2
  • 我是做网站怎么赚钱吗福建宏盛建设集团网站
  • 直接进网站的浏览器打开wordpress短链识别
  • 滁州网站开发建立网站的流程的合理顺序
  • 国美在线网站建设seo发展现状
  • 狼雨seo网站排名查询wordpress 清理插件
  • 知名的网页制作公司推荐国外seo综合查询
  • 网站名字备案WordPress重新安装删除哪个
  • 个人开网站佛山网站建设拓客科技
  • 网站如何做外链2018电影网站建设的意义
  • 江苏做网站的公司哪家做网站
  • 保定市城乡规划建设局网站番禺建设网站专家
  • 青岛网站推广企业网站架构模板
  • 阿里云做网站买什么软件卖手表的网站
  • 买个网站域名要多少钱一年光泽网站建设wzjseo
  • 北京sem网站电商的推广方式
  • 阿里云网站商城建设wordpress 首页打不开
  • 动易论坛官方网站阿里云域名注册及备案
  • 免费建站模板哪个好wordpress 爆破
  • 十堰网站优化湛江百度网站快速排名
  • 可以在线做试卷的网站医院信息化建设会议安排网站