91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.01MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-30
  • 語言: C#
  • 標簽: C#??桌面??WIN7??倒計時器??

資源簡介

VS2010寫的桌面倒計時器,可以設置時間,提醒時間,到時播放的聲音,提醒播放的聲音,可用于各種競賽,搶答,演講的倒計時。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Speech.Synthesis;

namespace?Counter
{
????public?partial?class?Form1?:?Form
????{
????????int?total_seconds?=?100;
????????int?alert_seconds?=?0;
????????//?聲明INI文件的寫操作函數?WritePrivateProfileString()??

????????[System.Runtime.InteropServices.DllImport(“kernel32“)]

????????private?static?extern?long?WritePrivateProfileString(string?section?string?key?string?val?string?filePath);

????????//?聲明INI文件的讀操作函數?GetPrivateProfileString()??

????????[System.Runtime.InteropServices.DllImport(“kernel32“)]

????????private?static?extern?int?GetPrivateProfileString(string?section?string?key?string?def?System.Text.StringBuilder?retVal?int?size?string?filePath);

????????public?void?Writue(string?section?string?key?string?valuestring?sPath)
????????{

????????????//?section=配置節,key=鍵名,value=鍵值,path=路徑??

????????????WritePrivateProfileString(section?key?value?sPath);

????????}
????????public?string?ReadValue(string?section?string?keystring?sPath)
????????{

????????????//?每次從ini中讀取多少字節??

????????????System.Text.StringBuilder?temp?=?new?System.Text.StringBuilder(255);

????????????//?section=配置節,key=鍵名,temp=上面,path=路徑??

????????????GetPrivateProfileString(section?key?““?temp?255?sPath);

????????????return?temp.ToString();

????????}??
??
????????public?Form1()
????????{
????????????InitializeComponent();
????????????????????
????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(string.IsNullOrEmpty(this.label10.Text)?||?string.IsNullOrEmpty(this.label11.Text))
????????????{
????????????????MessageBox.Show(“請先選擇播放的提示音!“);
????????????????return;
????????????}
????????????if?(this.button1.Text?==?“開始“)
????????????{
????????????????int?tmp_total_seconds?=?(int)(this.numericUpDown1.Value)?*?60?+?(int)(this.numericUpDown2.Value);
????????????????int?tmp_alert_seconds?=?(int)(this.numericUpDown4.Value)?*?60?+?(int)(this.numericUpDown3.Value);
????????????????if?(tmp_total_seconds?????????????????{
????????????????????MessageBox.Show(“警告時間應該小于總倒計時時間!“);
????????????????????return;
????????????????}
????????????????total_seconds?=?tmp_total_seconds;
????????????????alert_seconds=tmp_alert_seconds;
????????????????this.timer1.Enabled?=?true;
????????????????this.timer1.Start();
????????????????this.button1.Text?=?“暫停“;

????????????}
????????????else?if?(this.button1.Text?==?“暫停“)
????????????{
????????????????this.timer1.Stop();
????????????????this.timer1.Enabled?=?false;
????????????????this.button1.Text?=?“繼續“;
????????????}
????????????else?if?(this.button1.Text?==?“繼續“)
????????????{
????????????????this.timer1.Enabled?=?true;
????????????????this.timer1.Start();
????????????????this.button1.Text?=?“暫停“;
?????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????117??2016-11-22?21:24??Counter\Counter\app.config

?????文件?????337920??2016-11-24?22:55??Counter\Counter\bin\Debug\Counter.exe

?????文件????????117??2016-11-22?21:24??Counter\Counter\bin\Debug\Counter.exe.config

?????文件??????34304??2016-11-24?22:55??Counter\Counter\bin\Debug\Counter.pdb

?????文件??????11608??2016-11-24?22:18??Counter\Counter\bin\Debug\Counter.vshost.exe

?????文件????????117??2016-11-22?21:24??Counter\Counter\bin\Debug\Counter.vshost.exe.config

?????文件????????490??2010-03-18?12:39??Counter\Counter\bin\Debug\Counter.vshost.exe.manifest

?????文件??????60044??2016-11-22?20:39??Counter\Counter\bin\Debug\TimeOver.wav

?????文件?????335360??2016-11-22?21:25??Counter\Counter\bin\Debug\宏信證券-倒計時工具.exe

?????文件????????231??2016-11-24?22:37??Counter\Counter\bin\Release\config.ini

?????文件?????337408??2016-11-24?22:55??Counter\Counter\bin\Release\Counter.exe

?????文件????????117??2016-11-22?21:24??Counter\Counter\bin\Release\Counter.exe.config

?????文件??????11608??2016-12-02?20:34??Counter\Counter\bin\Release\Counter.vshost.exe

?????文件????????117??2016-11-22?21:24??Counter\Counter\bin\Release\Counter.vshost.exe.config

?????文件????????490??2010-03-18?12:39??Counter\Counter\bin\Release\Counter.vshost.exe.manifest

?????文件????????231??2016-11-24?22:37??Counter\Counter\bin\宏信證券-倒計時工具\config.ini

?????文件?????337408??2016-11-24?22:55??Counter\Counter\bin\宏信證券-倒計時工具\宏信證券-倒計時工具.exe

?????文件?????159739??2016-11-22?21:25??Counter\Counter\clock.ico

?????文件???????3945??2016-11-22?21:25??Counter\Counter\Counter.csproj

?????文件???????9073??2016-11-24?22:55??Counter\Counter\Form1.cs

?????文件??????19469??2016-11-24?22:52??Counter\Counter\Form1.Designer.cs

?????文件?????245925??2016-11-24?22:52??Counter\Counter\Form1.resx

?????文件????????732??2016-11-24?22:18??Counter\Counter\obj\x86\Debug\Counter.csproj.FileListAbsolute.txt

?????文件????????975??2016-11-24?22:55??Counter\Counter\obj\x86\Debug\Counter.csproj.GenerateResource.Cache

?????文件?????337920??2016-11-24?22:55??Counter\Counter\obj\x86\Debug\Counter.exe

?????文件?????160305??2016-11-24?22:55??Counter\Counter\obj\x86\Debug\Counter.Form1.resources

?????文件??????34304??2016-11-24?22:55??Counter\Counter\obj\x86\Debug\Counter.pdb

?????文件????????180??2016-11-22?21:25??Counter\Counter\obj\x86\Debug\Counter.Properties.Resources.resources

?????文件???????6518??2016-11-24?22:18??Counter\Counter\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????5849??2016-11-24?22:55??Counter\Counter\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

............此處省略41個文件信息

評論

共有 條評論