基本信息
源码名称:BS项目桌面化 实例源码
源码大小:0.74M
文件格式:.rar
开发语言:C#
更新时间:2017-11-28
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 10 元×
微信扫码支付:10 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
目前很多桌面系统,开发起来及后期管理可能比较麻烦,现在可以采用一个桌面浏览器客户端模式,然后加载WEB站点内容,这样变更功能点,只需要后台进行更改就可以,客户端只要可以上网就可以使用这些功能模块!
目前很多桌面系统,开发起来及后期管理可能比较麻烦,现在可以采用一个桌面浏览器客户端模式,然后加载WEB站点内容,这样变更功能点,只需要后台进行更改就可以,客户端只要可以上网就可以使用这些功能模块!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace FulinmenOS
{
public partial class FulinmenOS : Form
{
public FulinmenOS()
{
InitializeComponent();
this.webBrowser1.Navigate("http://zhangbin.imwork.net");
}
private void timer_size_Tick(object sender, EventArgs e)
{
if (this.Width <= 640)
{
this.Width = 640;
this.Height = 450;
}
else
{ }
}
private void timer_reflash_Tick(object sender, EventArgs e)
{
this.webBrowser1.Refresh();
}
private void timer_surfing_Tick(object sender, EventArgs e)
{
//timer_voice.Enabled = false;
System.Net.NetworkInformation.Ping pa = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply pa1 = pa.Send("zhangbin.imwork.net", 30);
System.Speech.Synthesis.SpeechSynthesizer synth = new System.Speech.Synthesis.SpeechSynthesizer();
synth.Volume = 100;
synth.Rate = -2;
synth.SelectVoice("Microsoft Lili");
if (pa1.Status == System.Net.NetworkInformation.IPStatus.Success)
{
timer_voice.Enabled = true;
}
else
{
timer_voice.Enabled = true;
}
}
private void timer_voice_Tick(object sender, EventArgs e)
{
System.Net.NetworkInformation.Ping pa = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply pa1 = pa.Send("zhangbin.imwork.net", 30);
System.Speech.Synthesis.SpeechSynthesizer synth = new System.Speech.Synthesis.SpeechSynthesizer();
synth.Volume = 100;
synth.Rate = -2;
synth.SelectVoice("Microsoft Lili");
if (pa1.Status == System.Net.NetworkInformation.IPStatus.Success)
{
//MessageBox.Show("chenggong");
synth.Speak("网络已连接成功");
synth.Dispose();
timer_voice.Enabled = false;
}
else
{
synth.Speak("网络正在连接中,请稍候!");
synth.Dispose();
}
}
}
}