xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 0.10M
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2024-04-27
  • 語言: C#
  • 標簽: 實現??程序??C#??

資源簡介

C#實現一個閃屏小程序,可自定義閃屏間隔時長

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;

namespace?blink
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????//colorIndex計數
????????private?int?colorIndex;
????????//定義顏色數組
????????private?Color[]?colors;
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????//給背景添加顏色,以colorIndex計數為索引

????????????BackColor?=?colors[colorIndex];
????????????//?button5.BackColor?=?colors[colorIndex];
????????????//?button5.BackColor
????????????//計數遞增
????????????colorIndex++;
????????????//如果計數大于設定的顏色數量,則計數歸0,實現循環
????????????if?(colorIndex?>=?colors.Length)
????????????{
????????????????colorIndex?=?0;
????????????}

????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{

????????}
????????private?void?blink(int?a)
????????{

????????????//for?(int?i?=?255;?i?>=?0;?i=i-10)
????????????//????for?(int?j?=?255;?j>=?0;?j?=?j?-?10)
????????????//????????for?(int?k?=?255;?k?>=?0;?k?=?k?-?10)
????????????//????????{
????????????//????????????{
????????????//????????????????{
????????????//????????????????????Color?c?=?new?Color();???????????????//定義一個Color類型的實例c?????????????//為實例c賦值
????????????//????????????????????c?=?Color.FromArgb(i?jk);//通過設置紅綠藍的值變化
????????????//????????????????????button1.BackColor?=?c;
??????????????????????????????
????????????//????????????????}
????????????//????????????}
????????????//????????}

????????????//Color?c?=?Color.FromArgb(140?140?140);
????????????colors?=?new?Color[]?{?Color.Red?Color.Blue?Color.Cyan};?//
????????????//創建定時器
????????????//Timer?timer?=?new?Timer();
????????????timer1.Interval?=?a;
????????????//timer2.Tick?+=?Timer_Tick;
????????????//timer1.Start();

????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????//int?a?=?200;
????????????timer1.Start();
????????????int?a;
????????????if?(textBox1.Text?==?““)?{?a?=?2000;?}
????????????else?{?a?=?int.Parse(textBox1.Text);?}

????????????blink(a);
????????}

????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????timer1.Stop();
????????}


????????//private?void?timer2_Tick(object?sender?EventArgs?e)
????????//{
????????//????btn_left_led.BackColor?=?btn_left_led.BackColor?==?Color.DarkGray???Color.Red?:?Color.DarkGray;
????????//}
????????/*
????????private?int?colorIndex;
????????//定義顏色數組
????????private?Color[]?colors;
????????private?void?timer2_Tick(object?sender?EventArgs?e)
????????{

????????????Graphics?gra?=?this.pictureBox2.CreateGraphics();

????????????Brush?bush?=?new?SolidBrush(colors[colorIndex]);//填充的顏色

????????????gra.FillEllipse(bush?10?10?100?100);//畫填充橢圓的方法,x坐標、y坐標

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-10-10?08:27??.vs\
?????目錄???????????0??2020-10-10?08:27??.vs\blink\
?????目錄???????????0??2020-10-10?08:27??.vs\blink\v16\
?????文件???????41472??2020-10-14?13:54??.vs\blink\v16\.suo
?????文件?????????189??2020-08-19?18:13??App.config
?????目錄???????????0??2020-10-14?13:42??bin\
?????目錄???????????0??2020-11-05?10:55??bin\Debug\
?????文件?????????189??2020-08-19?18:13??bin\Debug\blink.exe.config
?????文件???????19464??2020-11-05?10:55??bin\Debug\blink.exe.mr
?????文件???????32256??2020-10-14?13:40??bin\Debug\blink.pdb
?????目錄???????????0??2020-10-14?13:54??bin\Release\
?????文件???????28672??2020-10-14?13:54??bin\Release\blink.exe
?????文件?????????189??2020-08-19?18:13??bin\Release\blink.exe.config
?????文件???????30208??2020-10-14?13:54??bin\Release\blink.pdb
?????文件????????3763??2020-10-14?13:54??blink.csproj
?????文件????????1115??2020-08-19?18:13??blink.sln
?????文件????????9662??2020-10-14?13:38??favicon48.ico
?????文件????????4172??2020-10-14?13:40??Form1.cs
?????文件????????3926??2020-10-14?13:40??Form1.Designer.cs
?????文件???????20811??2020-10-14?13:40??Form1.resx
?????目錄???????????0??2020-10-14?13:42??obj\
?????目錄???????????0??2020-10-14?13:42??obj\Debug\
?????文件?????????214??2020-10-10?15:11??obj\Debug\.NETframeworkVersion=v4.7.2.AssemblyAttributes.cs
?????文件??????????42??2020-10-14?13:40??obj\Debug\blink.csproj.CoreCompileInputs.cache
?????文件????????1190??2020-10-14?13:40??obj\Debug\blink.csproj.FileListAbsolute.txt
?????文件????????1012??2020-10-14?13:40??obj\Debug\blink.csproj.GenerateResource.cache
?????文件????????8435??2020-10-14?13:41??obj\Debug\blink.csprojAssemblyReference.cache
?????文件???????19456??2020-10-14?13:40??obj\Debug\blink.exe
?????文件???????10228??2020-10-14?13:40??obj\Debug\blink.Form1.resources
?????文件???????32256??2020-10-14?13:40??obj\Debug\blink.pdb
?????文件?????????180??2020-10-14?13:40??obj\Debug\blink.Properties.Resources.resources
............此處省略24個文件信息

評論

共有 條評論