using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace sıcaklıkuyarısı
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int sck;
sck = int.Parse(textBox1.Text);
if(sck<=0) label1.ForeColor=Color.Red;
if(sck>0 || sck<=20 ) label1.ForeColor=Color.Blue;
if (sck > 20 || sck<=40) label1.ForeColor = Color.White;
if (sck>40) label1.ForeColor = Color.Yellow;
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace sıcaklıkuyarısı
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int sck;
sck = int.Parse(textBox1.Text);
if(sck<=0) label1.ForeColor=Color.Red;
if(sck>0 || sck<=20 ) label1.ForeColor=Color.Blue;
if (sck > 20 || sck<=40) label1.ForeColor = Color.White;
if (sck>40) label1.ForeColor = Color.Yellow;
}
}
}