<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Samet Kilictas&#039;s Blog &#187; csharp</title>
	<atom:link href="http://samet.kilictas.com/tag/csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>J2E, PHP, Linux, PL/SQL and other random rants</description>
	<lastBuildDate>Sun, 06 Nov 2011 04:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tutorial #3 &#8211; Pizza Order in C#</title>
		<link>http://samet.kilictas.com/tutorial-in-c-sharp-checkbox-radiobutton-order-pizza/</link>
		<comments>http://samet.kilictas.com/tutorial-in-c-sharp-checkbox-radiobutton-order-pizza/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 08:39:04 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Checkbox]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[Radiobutton]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=87</guid>
		<description><![CDATA[Here is my new pizza order tutorial for you. In this tutorial you are able to control checkboxes and radiobuttons together and show them into a message box window. Codes below&#8230; 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 WindowsFormsApplication2 { public partial class pizza : [...]]]></description>
			<content:encoded><![CDATA[<p>Here is my new pizza order tutorial for you. In this tutorial you are able to control checkboxes and radiobuttons together and show them into a message box window.</p>
<p><a href="http://samet.kilictas.com/wp-content/uploads/2008/11/pizza.jpg"><img class="alignnone size-medium wp-image-88" title="pizza" src="http://samet.kilictas.com/wp-content/uploads/2008/11/pizza-300x180.jpg" alt="" width="300" height="180" /></a></p>
<p>Codes below&#8230;</p>
<pre class="brush: csharp">
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 WindowsFormsApplication2
{
public partial class pizza : Form
{

//Some global strings to keep radiobutton and checkbox events text&#039;s.
private String a1 = null;
private String a2 = null;
private String a3 = null;
private String menu = null;

public pizza()
{
InitializeComponent();
}
</pre>
<p><span id="more-87"></span></p>
<pre class="brush: csharp">

private void button1_Click(object sender, EventArgs e)
{

// This event for new order button, so it makes everything null.
textBox1.Text = null;
textBox2.Text = null;
radioButton1.Checked = false;
radioButton2.Checked = false;
radioButton3.Checked = false;
checkBox1.Checked = false;
checkBox2.Checked = false;
checkBox3.Checked = false;
}

private void button3_Click(object sender, EventArgs e)
{
Application.Exit(); // it used for exit button
}

private void button2_Click(object sender, EventArgs e)
{
String name = textBox1.Text;
String surname = textBox2.Text;

MessageBox.Show(&quot;Name: &quot; + name + &quot;\nSurname: &quot; + surname + &quot;\nMenu: &quot; + menu + &quot;\nAdditions:&quot; + a1 + a2 + a3, &quot;Confirm Your Order!&quot;, MessageBoxButtons.YesNo ,MessageBoxIcon.Information);

}

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
a1 = &quot; Mushroom&quot;;
}
else
{
a1 = null;
}
}

private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
if (checkBox2.Checked)
{
a2 = &quot; Olive&quot;;
}
else
{
a2 = null;
}
}

private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
if (checkBox3.Checked)
{
a3 = &quot; Corn&quot;;
}
else
{
a3 = null;
}
}

private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
menu = &quot;Classic&quot;;
}

private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
menu = &quot;Full&quot;;
}

private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
menu = &quot;Vegeterian&quot;;
}
}
}</pre>
<p>Any questions ?</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D87&count=vertical&related=&text=Tutorial%20%233%20-%20Pizza%20Order%20in%20C%23' class='twitter-share-button' data-text='Tutorial #3 - Pizza Order in C#' data-url='http://samet.kilictas.com/?p=87' data-counturl='http://samet.kilictas.com/tutorial-in-c-sharp-checkbox-radiobutton-order-pizza/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/tutorial-in-c-sharp-checkbox-radiobutton-order-pizza/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

