Check IT
Hinweis: Die Bilddateien müssen als Resourcen über das Pull-Down-Menü Project>Properties>Resources>Add Resource
in das Projekt eingefügt werden.Download: Zip-Datei (30KB) |
Sourcecode:
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 check_it
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btn_end_Click(object sender, EventArgs e)
{
this.Close();
}
private void test()
{
if (pic_1.Image != null)
{
pic_1.Image = null;
}
if (rdb_vielleicht.Checked)
{
pic_1.Image = Properties.Resources.richtig;
}
else
{
pic_1.Image = Properties.Resources.falsch;
}
}
private void rdb_vielleicht_CheckedChanged(object sender, EventArgs e)
{
test();
}
private void rdb_richtig_CheckedChanged(object sender, EventArgs e)
{
test();
}
private void rdb_falsch_CheckedChanged(object sender, EventArgs e)
{
test();
}
}
}