资源简介
一个空调温度控制系统的程序,用c3做的,比较简单。还是新手。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Timers;
namespace wen1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private static int a=20b=25;
private static string c = “强风“ d =“ 弱风“;
private void button6_Click(object sender EventArgs e)
{
textBox2.Text = “室温 “ + “ 设定温度“ + “\r\n“ + a + “ “ + b + “\r\n“ + “\r\n“ + “模式“ + “ “ + c;
textBox3.BackColor = System.Drawing.Color.Red;
textBox1.Text = “室温 “ + “ 设定温度“ + “\r\n“ + a+ “ “ + b + “\r\n“ + “\r\n“ + “模式“ +“ “ + c ;
textBox4.BackColor = System.Drawing.Color.Red;
button4.Enabled = false;
button6.Enabled = false;
}
private void button9_Click(object sender EventArgs e)
{
if (button4.Enabled == false && button6.Enabled == false)
{
textBox1.Text = “室温 “ + “ 设定温度“ + “\r\n“ + a + “ “ + b + “\r\n“ + “\r\n“ + “模式“ + “ “ + c;
textBox3.BackColor = System.Drawing.Color.Red;
textBox2.Text = “室温 “ + “ 设定温度“ + “\r\n“ + a + “ “ + b + “\r\n“ + “\r\n“ + “模式“ + “ “ + c;
textBox4.BackColor = System.Drawing.Color.Red;
button3.Enabled = false;
}
}
private void button4_Click(object sender EventArgs e)
{
textBox1.Text = “室温 “ + “ 设定温度“ + “\r\n“ + a + “ “ + b + “\r\n“ + “\r\n“ + “模式“ +“ “ + c;
textBox3.BackColor = System.Drawing.Color.Red;
textBox2.Text = ““;
textBox4.BackColor = System.Drawing.Color.White;
button4.Enabled = false;
}
private void button11_Click(object sender EventArgs e)
{
textBox2.Text =““;
textBox3.BackColor = System.Drawing.Color.White;
textBox1.Text = ““;
textBox4.BackColor = System.Drawing.Color.White;
button4.Enabled = true ;
button6.Enabled = true;
button3.Enabled = true;
}
private void button12_Click(object sender EventArgs e)
{
textBox2.Text = ““;
textBox3.BackColor = System.Drawing.Color.White;
textBox1.Text = ““;
textBox4.BackColor = System.Drawing.Color.White;
button4.Enabled = true;
button6.Enabled = true;
}
private void Form1_Load_1(object sender EventArgs e)
{
timer1.Enabled = true;
timer2.Enabled = true;
timer3.Enabled = true;
timer4.Enabled =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 32768 2009-06-04 17:27 wen1\wen1\bin\Debug\wen1.exe
文件 38400 2009-06-04 17:27 wen1\wen1\bin\Debug\wen1.pdb
文件 5632 2005-11-11 22:25 wen1\wen1\bin\Debug\wen1.vshost.exe
文件 17662 2009-06-04 17:27 wen1\wen1\Form1.cs
文件 15998 2009-05-24 15:56 wen1\wen1\Form1.Designer.cs
文件 6960 2009-05-24 15:56 wen1\wen1\Form1.resx
文件 842 2009-05-24 15:56 wen1\wen1\obj\Debug\wen1.csproj.GenerateResource.Cache
文件 32768 2009-06-04 17:27 wen1\wen1\obj\Debug\wen1.exe
文件 180 2009-05-24 15:56 wen1\wen1\obj\Debug\wen1.Form1.resources
文件 38400 2009-06-04 17:27 wen1\wen1\obj\Debug\wen1.pdb
文件 180 2009-05-21 22:35 wen1\wen1\obj\Debug\wen1.Properties.Resources.resources
文件 679 2009-06-04 17:28 wen1\wen1\obj\wen1.csproj.FileListAbsolute.txt
文件 463 2009-04-23 22:20 wen1\wen1\Program.cs
文件 1180 2009-04-23 22:20 wen1\wen1\Properties\AssemblyInfo.cs
文件 2864 2009-04-23 22:20 wen1\wen1\Properties\Resources.Designer.cs
文件 5612 2009-04-23 22:20 wen1\wen1\Properties\Resources.resx
文件 1089 2009-04-23 22:20 wen1\wen1\Properties\Settings.Designer.cs
文件 249 2009-04-23 22:20 wen1\wen1\Properties\Settings.settings
文件 3215 2009-04-23 22:22 wen1\wen1\wen1.csproj
文件 901 2009-04-23 22:20 wen1\wen1.sln
..A..H. 13824 2009-06-04 17:28 wen1\wen1.suo
目录 0 2009-04-23 22:20 wen1\wen1\obj\Debug\TempPE
目录 0 2009-05-21 22:40 wen1\wen1\bin\Debug
目录 0 2009-06-04 17:27 wen1\wen1\obj\Debug
目录 0 2009-04-23 22:20 wen1\wen1\bin
目录 0 2009-05-21 22:35 wen1\wen1\obj
目录 0 2009-04-23 22:20 wen1\wen1\Properties
目录 0 2009-06-04 17:27 wen1\wen1
目录 0 2009-04-23 22:20 wen1
----------- --------- ---------- ----- ----
............此处省略2个文件信息
评论
共有 条评论