<?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>Gazi BMTİpucu</title>
	<atom:link href="http://www.gazibmt.org/blog/tag/ipucu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gazibmt.org/blog</link>
	<description>Gazi Üniversitesi Bilgisayar Mühendisliği Topluluğu Blogu</description>
	<lastBuildDate>Sat, 06 Mar 2010 21:08:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Photoshop ile Resim Ovalleştirme</title>
		<link>http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/</link>
		<comments>http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 19:08:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[Ders]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Resim]]></category>

		<guid isPermaLink="false">http://www.gazibmt.org/blog/?p=193</guid>
		<description><![CDATA[Topluluğumuzun sitesiyle uğraşırken tasarıma da olduk&#231;a &#246;nem vermeye &#231;alıştık. Sitede mevcut olan temayla uyumlu olması i&#231;in de bannerımız &#252;zerinde k&#252;&#231;&#252;k bir değişiklik yapmamız gerekti. Oval &#246;ğelerden oluşan tema gibi bannerımızın da kenarlarını ovalleştirmemiz gerekti.
Bunun nasıl olabileceğini araştırdım ve birka&#231; y&#246;ntem karşıma &#231;ıktı bunlardan photoshop&#8217;un smooth &#246;zelliği ile yapılanı anlatacağım &#246;rneği de bizim banner &#252;zerinden yapalım.
Yazan: [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img align="left" alt="" height="100" hspace="5" src="http://www.gazibmt.org/blog/wp-content/uploads/1265483434_Adobe Photoshop.png" width="100" />Topluluğumuzun sitesiyle uğraşırken tasarıma da olduk&ccedil;a &ouml;nem vermeye &ccedil;alıştık. Sitede mevcut olan temayla uyumlu olması i&ccedil;in de bannerımız &uuml;zerinde k&uuml;&ccedil;&uuml;k bir değişiklik yapmamız gerekti. Oval &ouml;ğelerden oluşan tema gibi bannerımızın da kenarlarını ovalleştirmemiz gerekti.</p>
<p style="text-align: justify;">Bunun nasıl olabileceğini araştırdım ve birka&ccedil; y&ouml;ntem karşıma &ccedil;ıktı bunlardan photoshop&rsquo;un smooth &ouml;zelliği ile yapılanı anlatacağım &ouml;rneği de bizim banner &uuml;zerinden yapalım.</p>
<p><strong>Yazan: </strong>Nuran Bahar</p>
<p><span id="more-193"></span></p>
<p style="text-align: justify;">&Ouml;ncelikle arka planı saydam olarak ayarlanmış bir dosya a&ccedil;ıyoruz ve &ldquo;header&rdquo; isimli resmimizi ekliyoruz:</p>
<p><img alt="" src="http://i47.tinypic.com/w817if.png" /></p>
<p>Direk arkaplan olarak atanacaktır. Bu katmana &ccedil;ift tıklayarak Katman0 (Layer0) yapıyoruz.</p>
<p><img alt="" src="http://i46.tinypic.com/2njwmci.png" /></p>
<p style="text-align: justify;">Daha sonra T&uuml;rk&ccedil;e Photoshop&rsquo;ta D&ouml;rtgen İşaretleme Aracı (Rectangual Marquee Tool) se&ccedil;iyoruz ve resmimizin biraz i&ccedil;erisinden dikd&ouml;rtgen bir alan se&ccedil;iyoruz.</p>
<p><img alt="" src="http://i48.tinypic.com/35bi0pj.png" /></p>
<p><img alt="" src="http://i45.tinypic.com/166u6x.png" /></p>
<p style="text-align: justify;">Dikd&ouml;rtgen b&ouml;lgeyi se&ccedil;tikten sonra Se&ccedil; men&uuml;s&uuml;nden Değiştir &gt; D&uuml;zg&uuml;nleştir i se&ccedil;iyoruz (select&gt;modify&gt;smooth) buradan yuvarlaklık değerini (radius) se&ccedil;iyoruz. Ben bizim banner &uuml;zerinde 30 olarak se&ccedil;tim daha sonra yine Se&ccedil; men&uuml;s&uuml;nden Ters(Inverse)&rsquo;e tıklıyoruz ardından klavyeden Backspace ile silme işlemini ger&ccedil;ekleştiriyoruz :</p>
<p><img alt="" src="http://i47.tinypic.com/o0p2f6.png" /></p>
<p><img alt="" src="http://i45.tinypic.com/292wqig.png" /></p>
<p><img alt="" src="http://i49.tinypic.com/15hnci8.png" /></p>
<p><img alt="" src="http://i46.tinypic.com/2sbn87o.png" /></p>
<p><img alt="" src="http://i50.tinypic.com/andizq.png" /></p>
<p>Resmimizin son g&ouml;r&uuml;nt&uuml;s&uuml; şu şekilde olacaktır:</p>
<p><img alt="" src="http://i47.tinypic.com/1oopvo.png" /></p>
<p style="text-align: justify;">Resmimizi ovalleştirme işlemini ger&ccedil;ekleştirmiş olduk. Bu işlemi photoshop kullanmadan yapmak istiyorsanız http://www.roundpic.com/ sitesi aracılığıyla da kolaylıkla ger&ccedil;ekleştirebilirsiniz&nbsp;</p>
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/02/veri-yapilari-data-structures-ders-sunumlari-turkce/" title="Veri Yapıları (Data Structures) Ders Sunumları (Türkçe)" rel="bookmark inlinks">Veri Yapıları (Data Structures) Ders Sunumları (Türkçe)</a><span class="count">( 2 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/java-ile-nesne-yonelimli-programlama-sunumlari/" title="Java ile Nesne Yönelimli Programlama Sunumları (İngilizce)" rel="bookmark inlinks">Java ile Nesne Yönelimli Programlama Sunumları (İngilizce)</a><span class="count">( 2 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/isletim-sistemleri-operating-systems-ders-sunumlari-turkce/" title="İşletim Sistemleri (Operating Systems) Ders Sunumları (Türkçe)" rel="bookmark inlinks">İşletim Sistemleri (Operating Systems) Ders Sunumları (Türkçe)</a><span class="count">( 2 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/dosya-organizasyonu-file-organization-ders-sunumlari-turkce/" title="Dosya Organizasyonu (File Organization) Ders Sunumları (Türkçe)" rel="bookmark inlinks">Dosya Organizasyonu (File Organization) Ders Sunumları (Türkçe)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/mit-bilgisayar-muhendisligi-dersleri/" title="MIT Bilgisayar Mühendisliği Dersleri" rel="bookmark inlinks">MIT Bilgisayar Mühendisliği Dersleri</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/algoritmalar-algorithms-dersi-sunumlari-turkce/" title="Algoritmalar (Algorithms) Dersi Sunumları Türkçe" rel="bookmark inlinks">Algoritmalar (Algorithms) Dersi Sunumları Türkçe</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/" title="ASP.NET Gridview içine hyperlink eklemek" rel="bookmark inlinks">ASP.NET Gridview içine hyperlink eklemek</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Class Diagram Kullanımı</title>
		<link>http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/</link>
		<comments>http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 20:32:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bilgisayar Mühendisliği]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Genel]]></category>
		<category><![CDATA[Fonksiyonlar]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Metodlar]]></category>
		<category><![CDATA[Parametre]]></category>
		<category><![CDATA[Proje]]></category>
		<category><![CDATA[Sınıflar]]></category>
		<category><![CDATA[Tanıtım]]></category>
		<category><![CDATA[Veri Yapıları]]></category>
		<category><![CDATA[Visual studio]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false">http://www.gazibmt.org/blog/?p=158</guid>
		<description><![CDATA[Class diagram visual studio i&#231;inde rahat bir şekilde sınıflar oluşturmanıza yardımcı olur. G&#246;rsel olarak da projenizdeki sınıfların &#246;zeti gibidir. Class diagram&#39;ı bir uml aracı gibi de kullanaiblirsiniz. Gayet kullanışlıdır. Ben bu yazıda, class diagram&#39;ı tanıtmak i&#231;in basit bir sınıf oluşturmayı d&#252;ş&#252;n&#252;yorum.
&#214;ncelikle boş bir proje a&#231;ıyoruz. Daha sonra Project&#62;Add New Item men&#252;s&#252;nden yeni bir Class Diagram [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img align="left" alt="" hspace="2" src="http://i45.tinypic.com/2nremvn.png" />Class diagram visual studio i&ccedil;inde rahat bir şekilde sınıflar oluşturmanıza yardımcı olur. G&ouml;rsel olarak da projenizdeki sınıfların &ouml;zeti gibidir. Class diagram&#39;ı bir uml aracı gibi de kullanaiblirsiniz. Gayet kullanışlıdır. Ben bu yazıda, class diagram&#39;ı tanıtmak i&ccedil;in basit bir sınıf oluşturmayı d&uuml;ş&uuml;n&uuml;yorum.</p>
<p style="text-align: justify;">&Ouml;ncelikle boş bir proje a&ccedil;ıyoruz. Daha sonra Project&gt;Add New Item men&uuml;s&uuml;nden yeni bir Class Diagram ekliyoruz. Eklediğimiz diagramın ekran g&ouml;r&uuml;nt&uuml;s&uuml; aşağıdaki gibi olacaktır.</p>
<p style="text-align: justify;"><strong>Yazan:</strong> Yakup Buğra Bozkurt</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span id="more-158"></span></p>
<p><img alt="Class_diagram_1" border="1" height="398" src="http://i45.tinypic.com/14ih7k6.png" width="656" /></p>
<p style="text-align: justify;">Solda kullancağımız tool&#39;ları g&ouml;rebilirsiniz. Ben &ouml;rnek olarak sınıf oluşturacağım i&ccedil;in buradan bir adet Class s&uuml;r&uuml;kl&uuml;yorum.</p>
<p><img align="left" alt="class_diagram_2" height="326" hspace="5" src="http://i45.tinypic.com/xg9t76.png" width="385" /></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">Class aracını s&uuml;r&uuml;kledikten sonra aşağıdaki pencere a&ccedil;ılacaktır. Burada size sınıfın ismini, erişimini ve bir de dosya olarak kaydedip kaydetmeyeceğini sorar. Eğer ayrı bir .cs dosyası olarak kaydetmek istemezseniz existinf file se&ccedil;eneğini se&ccedil;ip, başka bir cs dosyasının i&ccedil;ine yazabilirsiniz. Ben yeni bir cs dosyası a&ccedil;masını istedim.</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><img align="left" alt="calls_diagram_3" border="1" height="503" hspace="5" src="http://i46.tinypic.com/14vlm2x.png" width="445" /></p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">Daha sonra yandaki gibi, oluşturduğumuz sınıfa sağ tıklayıp, add field ile bir ka&ccedil; değişken oluşturuyorum. Buradan ayrıca resimdeki gibi method, property.. de uluşturabilmektesiniz.</p>
<p style="text-align: justify;">Ben; int_değişken1 , str_değişken2 isimli iki değişken ekledim. Ayrıca, metod1 adında bir de metod ekledim ve bir de constructor.</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">Değişkenleri ve metodları ekledikten sonra pencerenin altına gelip, Class Details sekmesine tıklarsanız, oluşturduğunuz sınıfın ddaha ayrıntılı yapısını g&ouml;rebilirsiniz. Ben bu pencerede, oluşturduğum metod1 ve construcutor&#39;a parametreler atadım. Ayrıca, yine daha &ouml;nce eklediğim değişkenlerin de tiplerini ve erişilebilirliklerini değiştirdim. Değişiklik yaptıklarımın bazılarını kırmızı &ccedil;er&ccedil;eve i&ccedil;ine aldım.</p>
<p style="text-align: justify;"><img alt="http://i46.tinypic.com/2vseqmd.png" src="http://i46.tinypic.com/2vseqmd.png" style="width: 805px; height: 270px;" /></p>
<p style="text-align: justify;">Burada da tasarımı bitirdikten sonra kodlara bakabiliriz. Ben başlangı&ccedil;ta diagramı oluştururken Deneme.cs isimli dosya a&ccedil;masını istemiştim. Projemde bulunan bu dosyanın kodları aşağıdaki gibi oldu.</p>
<p style="text-align: justify;">&nbsp;</p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;">
<p style="margin: 0px;"><span style="color: blue;">using</span> System;</p>
<p style="margin: 0px;"><span style="color: blue;">using</span> System.Collections.Generic;</p>
<p style="margin: 0px;"><span style="color: blue;">using</span> System.Text;</p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;"><span style="color: blue;">namespace</span> WindowsFormsApplication9</p>
<p style="margin: 0px;">{</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">class</span> <span style="color: rgb(43, 145, 175);">Deneme</span></p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">int</span> int_değişken1;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">protected</span> <span style="color: blue;">string</span> str_değişken2;</p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> Deneme(<span style="color: blue;">string</span> parametre1, <span style="color: blue;">int</span> parametre2)</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">throw</span> <span style="color: blue;">new</span> System.<span style="color: rgb(43, 145, 175);">NotImplementedException</span>();</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">void</span> metod1(<span style="color: rgb(43, 145, 175);">DateTime</span> parametre3, <span style="color: blue;">bool</span> parametre4)</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">throw</span> <span style="color: blue;">new</span> System.<span style="color: rgb(43, 145, 175);">NotImplementedException</span>();</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;">}</p>
</div>
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/01/c-kuyruk-queue-sinifi/" title="C# Kuyruk (Queue) Sınıfı" rel="bookmark inlinks">C# Kuyruk (Queue) Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/" title="Icon Finder icon arama motoru" rel="bookmark inlinks">Icon Finder icon arama motoru</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/guncel-im-sosyal-imleme-sitesi/" title="Güncel.im Sosyal İmleme Sitesi" rel="bookmark inlinks">Güncel.im Sosyal İmleme Sitesi</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/" title="C# Params İfadesi" rel="bookmark inlinks">C# Params İfadesi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-listview-kontrolu/" title="C# ListView Kontrolü" rel="bookmark inlinks">C# ListView Kontrolü</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/gazi-bmt-video-yayinlandi/" title="Gazi BMT Video Yayınlandı :)" rel="bookmark inlinks">Gazi BMT Video Yayınlandı <img src='http://www.gazibmt.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a><span class="count">( 2 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Windows formda bilgi taşıma</title>
		<link>http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/</link>
		<comments>http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:14:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Örnek]]></category>
		<category><![CDATA[Parametre]]></category>
		<category><![CDATA[Proje]]></category>
		<category><![CDATA[Uygulama]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false">http://www.gazibmt.org/blog/?p=144</guid>
		<description><![CDATA[
Aslında başlık biraz farklı oldu. Web projelerimizde sayfalar arası bilgi taşımak i&#231;in genellikle querystring kullanırız. Windows form projelerinde ise bu olmadığı i&#231;in parametre kullanırız. &#214;rnek olarak projeye Form2 isminde bir form ekleyelim. Form1&#39;den Form2&#39;ye ge&#231;erken s&#252;re ve tutar isminde iki tane değişkenin değerini taşıyalım.&#160; Dahan sonra Form2&#39;de bu değişkenleri bir butonun i&#231;inde kullanalım. Aşağıdaki kodlara [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" alt="" height="100" hspace="5" src="http://gazibmt.org/blog/wp-content/uploads/csharp.png" width="100" /></p>
<p style="text-align: justify;">Aslında başlık biraz farklı oldu. Web projelerimizde sayfalar arası bilgi taşımak i&ccedil;in genellikle querystring kullanırız. Windows form projelerinde ise bu olmadığı i&ccedil;in parametre kullanırız. &Ouml;rnek olarak projeye Form2 isminde bir form ekleyelim. Form1&#39;den Form2&#39;ye ge&ccedil;erken s&uuml;re ve tutar isminde iki tane değişkenin değerini taşıyalım.&nbsp; Dahan sonra Form2&#39;de bu değişkenleri bir butonun i&ccedil;inde kullanalım. Aşağıdaki kodlara baktığınız zaman olayı daha iyi anlayabilirsiniz.</p>
<p style="text-align: justify;"><strong>Yazan:</strong> Yakup Buğra Bozkurt</p>
<p style="margin: 0px;"><span id="more-144"></span></p>
<p style="margin: 0px; text-align: justify;">İlk olarak, projeye Form2&#39;yi ekliyoruz ve kodlarını aşağıdaki gibi d&uuml;zenliyoruz. Burada &ouml;nemli olan Form2&#39;ye ait global değişkenleri tanımlamak ve constructor ile yapılandırmak.<span style="color: blue;"></p>
<p>	</span></p>
<p style="margin: 0px; text-align: justify;">&nbsp;</p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;">
<div style="font-family: Courier New; font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;">
<p style="margin: 0px;"><span style="color: blue;">public</span> <span style="color: blue;">partial</span> <span style="color: blue;">class</span> <span style="color: rgb(43, 145, 175);">Form2</span> : <span style="color: rgb(43, 145, 175);">Form<br />
			</span><span>{<br />
			</span></p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;">
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">int</span> sure; <span style="color: green;">// Form2 sınıfının değişkenleri</span></p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">decimal</span> tutar;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">public</span> Form2(<span style="color: blue;">int</span> Sure, <span style="color: blue;">decimal</span> Tutar) <span style="color: green;">// Form2&#39;nin constructor&#39;ı</span></p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">this</span>.sure = Sure;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">this</span>.tutar = Tutar;</p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; InitializeComponent();</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }</p>
<p style="margin: 0px;">&nbsp;</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">private</span> <span style="color: blue;">void</span> button1_Click(<span style="color: blue;">object</span> sender, <span style="color: rgb(43, 145, 175);">EventArgs</span> e)</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: rgb(43, 145, 175);">MessageBox</span>.Show(<span style="color: rgb(163, 21, 21);">&quot;Toplam s&uuml;re: &quot;</span> + sure.ToString() + <span style="color: rgb(163, 21, 21);">&quot;, toplan &uuml;cret: &quot;</span> + tutar.ToString());</p>
<p style="margin: 0px;"><span style="color: green;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Form2 i&ccedil;inde bu değişkenleri kullanıyoruz.<br />
				</span></p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }&nbsp;<br />
				&nbsp;</p>
<p><span style="color: rgb(139, 69, 19);"><span style="font-family: verdana,geneva,sans-serif;">Daha sonra Form1&#39;in i&ccedil;indeki bir buton ile Form2 nesnesi &uuml;retiyoruz ve parametrelerini atıyoruz.</p>
<p>				</span></span></p>
<div style="font-family: Courier New; font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;">
<p style="margin: 0px;"><span style="color: blue;">private</span> <span style="color: blue;">void</span> button1_Click(<span style="color: blue;">object</span> sender, <span style="color: rgb(43, 145, 175);">EventArgs</span> e)</p>
<p style="margin: 0px;">{</p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp; <span style="color: rgb(43, 145, 175);">Form2</span> frm2 = <span style="color: blue;">new</span> Form2(10, 1.000); <span style="color: green;">// Form2 nesnesini oluşturoyoruz. Burada dikkat ettiyseniz parametre veriyoruz</span></p>
<p style="margin: 0px;">&nbsp;<br />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frm2.ShowDialog(); <span style="color: green;">//Form2 yi a&ccedil;ıyoruz.</span></p>
<p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</p>
<p>}<br />
					&nbsp;</p>
</p></div>
</p></div>
</p></div>
</div>
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/01/c-listview-kontrolu/" title="C# ListView Kontrolü" rel="bookmark inlinks">C# ListView Kontrolü</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/" title="ASP.NET Gridview içine hyperlink eklemek" rel="bookmark inlinks">ASP.NET Gridview içine hyperlink eklemek</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/" title="C# Params İfadesi" rel="bookmark inlinks">C# Params İfadesi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-delegeler/" title="C# Delegeler" rel="bookmark inlinks">C# Delegeler</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/" title="C# ile web sitesinin kaynak kodlarını okuma" rel="bookmark inlinks">C# ile web sitesinin kaynak kodlarını okuma</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Icon Finder icon arama motoru</title>
		<link>http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/</link>
		<comments>http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 11:28:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[Grafik]]></category>
		<category><![CDATA[İcon]]></category>
		<category><![CDATA[İnternet]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Proje]]></category>
		<category><![CDATA[Resim]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://gazibmt.org/blog/?p=59</guid>
		<description><![CDATA[
Bu sefer de size bir icon arama motorunu tanıtmak istiyorum. Ben genellikle proje yaparken, projemde butonlara felan koyacak icon sıkıntısı &#231;ekerdim. Garikerlikten hi&#231; anlamadığım i&#231;in de internetten arardım. Tabi ki google&#39;da icon arama &#231;ok sağlıklı olmuyor. İşte bir g&#252;n icon finder&#39;ı keşvettim. Icon Finder ile, projelerinizde kullanabileceğiniz icon&#39;ları rahatlıkla bulabilmektesiniz.&#160; Yaklaşık&#160; 134,000 icon i&#231;inden size [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" alt="" height="101" hspace="5" src="http://icons3.iconfinder.netdna-cdn.com/design/images/logo-large.png" style="width: 216px; height: 101px;" vspace="5" width="216" /></p>
<p style="text-align: justify;">Bu sefer de size bir icon arama motorunu tanıtmak istiyorum. Ben genellikle proje yaparken, projemde butonlara felan koyacak icon sıkıntısı &ccedil;ekerdim. Garikerlikten hi&ccedil; anlamadığım i&ccedil;in de internetten arardım. Tabi ki google&#39;da icon arama &ccedil;ok sağlıklı olmuyor. İşte bir g&uuml;n icon finder&#39;ı keşvettim. Icon Finder ile, projelerinizde kullanabileceğiniz icon&#39;ları rahatlıkla bulabilmektesiniz.&nbsp; Yaklaşık&nbsp; 134,000 icon i&ccedil;inden size uygun olanı bulursunuz heralde <img src='http://www.gazibmt.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span style="font-weight: bold;"> </span>Icon&#39;ların png, ve ico formatında resimlerini&nbsp; de indirebilmektesiniz.&nbsp; &Ouml;zellikle grafikerlikten hi&ccedil; anlamayan benim gibi arkadaşlara b&uuml;y&uuml;k faydası olacağını d&uuml;ş&uuml;n&uuml;yorum. Siteye <a href="http://www.iconfinder.net">http://www.iconfinder.net</a> adresinden ulaşabilirsiniz</p>
<p><strong>Yazan: </strong>Yakup Buğra Bozkurt</p>
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/" title="ASP.NET Gridview içine hyperlink eklemek" rel="bookmark inlinks">ASP.NET Gridview içine hyperlink eklemek</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/" title="C# ile web sitesinin kaynak kodlarını okuma" rel="bookmark inlinks">C# ile web sitesinin kaynak kodlarını okuma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/" title="C# Params İfadesi" rel="bookmark inlinks">C# Params İfadesi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/" title="C# Windows formda bilgi taşıma" rel="bookmark inlinks">C# Windows formda bilgi taşıma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/guncel-im-sosyal-imleme-sitesi/" title="Güncel.im Sosyal İmleme Sitesi" rel="bookmark inlinks">Güncel.im Sosyal İmleme Sitesi</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# Random Sınıfı</title>
		<link>http://www.gazibmt.org/blog/2010/01/c-random-sinifi/</link>
		<comments>http://www.gazibmt.org/blog/2010/01/c-random-sinifi/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 01:00:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Fonksiyonlar]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Metodlar]]></category>
		<category><![CDATA[Örnek]]></category>
		<category><![CDATA[Ramdom]]></category>
		<category><![CDATA[Sınıflar]]></category>

		<guid isPermaLink="false">http://gazibmt.org/blog/?p=41</guid>
		<description><![CDATA[Random sınıfı adından da anlaşılacağı &#252;zere rastgele, karışık sayı &#252;retmede kullanırız. Random sınıfının &#252;&#231; fonksiyonu vardır. Bunlar Next, NextDouble, NextBytes fonksiyonlarıdır. En &#231;ok kullanılanı Next fonksiyonudur. Şimdi bu fonksiyonları tek tek inceleyelim.
Yazan: Yakup Buğra Bozkurt

	Random sınıfını kullanmak i&#231;in ilk olarak nesnesini t&#252;retmelisiniz. Form kodlarında global alan i&#231;inde Random rastgele = newRandom(); şeklinde rastgele isimli bir [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img align="left" alt="" height="100" hspace="10" src="http://gazibmt.org/blog/wp-content/uploads/csharp.png" width="100" />Random sınıfı adından da anlaşılacağı &uuml;zere rastgele, karışık sayı &uuml;retmede kullanırız. Random sınıfının &uuml;&ccedil; fonksiyonu vardır. Bunlar Next, NextDouble, NextBytes fonksiyonlarıdır. En &ccedil;ok kullanılanı Next fonksiyonudur. Şimdi bu fonksiyonları tek tek inceleyelim.</p>
<p><strong>Yazan</strong>: Yakup Buğra Bozkurt</p>
<p><span id="more-41"></span></p>
<p>	<font size="2"><font face="Verdana, Arial, Helvetica, sans-serif">Random sınıfını kullanmak i&ccedil;in ilk olarak nesnesini t&uuml;retmelisiniz. Form kodlarında global alan i&ccedil;inde</font> <font color="#2b91af"><font face="Courier New, monospace">Random</font></font><font face="Courier New, monospace"> rastgele = </font><font color="#0000ff"><font face="Courier New, monospace">new</font></font><font color="#2b91af"><font face="Courier New, monospace">Random</font></font><font face="Courier New, monospace">(); </font>şeklinde rastgele isimli bir nesne oluşturuyoruz.<br />
	</font><br />
	<font color="#ff0000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Next Fonksiyonu:<br />
	</font><br />
	<font size="2"><font face="Verdana, Arial, Helvetica, sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &Uuml;&ccedil; farklı kullanımı vardır. Birincisinde parametre almadan bir sayı &uuml;retir. Bunu &uuml;st ve alt sınırı yoktur. Diğer kullanımında ise integer tipinde parametre alır, sıfır ile girilen parametre arasında bir sayı &uuml;retir. Son kullanımında ise iki parametre alır. Bunlar da alt ve &uuml;st sınırlardır. Aşağıdaki &ouml;rneği incelersek:<br />
	</font><br />
	</font><br />
	<font size="2"><font color="#0000ff"><font face="Courier New, monospace">private</font></font><font color="#0000ff"><font face="Courier New, monospace">void</font></font><font face="Courier New, monospace"> button1_Click(</font><font color="#0000ff"><font face="Courier New, monospace">object</font></font><font face="Courier New, monospace"> sender, </font><font color="#2b91af"><font face="Courier New, monospace">EventArgs</font></font><font face="Courier New, monospace"> e)</font></font><font size="2"> </font><br />
	<font face="Courier New, monospace" size="2">{</font><font size="2"> </font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">textBox1.Text = rastgele.Next().ToString();</font><font color="#008000"><font face="Courier New, monospace">// rastgele bir sayı &uuml;retir.</font></font></font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">texBox2.Text = rastgele.Next(25).ToString(); </font><font color="#008000"><font face="Courier New, monospace">// 0 ile 25 arasında bir sayı &uuml;retir.</font></font></font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">textBox3.Text = rastgele.Next(12, 34).ToString(); </font><font color="#008000"><font face="Courier New, monospace">// 12 ile 34 arasında bir sayı &uuml;retir.</font></font>&nbsp;</font><br />
	<font face="Courier New, monospace" size="2">}<br />
	</font><br />
	<font size="+0"><font size="2"><img src="http://img244.imageshack.us/img244/7176/14232454uc9.jpg" /><br />
	Next fonksiyonun &uuml;rettiği sayı, integer tipindedir, yani tam sayı &uuml;retir. </font></font><font color="#ff0000"><font size="+0"></p>
<p>	<font size="2">NextDouble Fonksiyonu:<br />
	</font></font></font><font size="+0"><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bu fonksiyonu da 0 ile 1 arasında double tipinde rastgele sayı &uuml;retmek i&ccedil;in kullanırız. <br />
	</font></font><br />
	<font size="2"><font color="#0000ff"><font face="Courier New, monospace">private</font></font><font color="#0000ff"><font face="Courier New, monospace">void</font></font><font face="Courier New, monospace"> button1_Click(</font><font color="#0000ff"><font face="Courier New, monospace">object</font></font><font face="Courier New, monospace"> sender, </font><font color="#2b91af"><font face="Courier New, monospace">EventArgs</font></font><font face="Courier New, monospace"> e)<br />
	</font></font><font size="2"><font face="Courier New, monospace">{</font><br />
	&nbsp;&nbsp;&nbsp;<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">textBox1.Text = rastgele.NextDouble().ToString();</font><font color="#008000"><font face="Courier New, monospace">// 0 ile 1 arasında double tipinde sayı &uuml;retir. <br />
	</font></font></font></font><font face="Courier New, monospace" size="2">}<br />
	<img src="http://img84.imageshack.us/img84/646/98264201ry5.jpg" /></font><br />
	<font color="#ff0000"><font size="+0"><br />
	<font size="2">NextByte Fonksiyonu:</font></font></font><br />
	<font size="+0"><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Byte tipindeki bir dizinin i&ccedil;ini doldurmak i&ccedil;in kullanırız. Aşağıdaki kodlarda &ouml;rneği inceleyelim.</font></font></p>
<p>
	<font size="2"><font color="#0000ff"><font face="Courier New, monospace">private</font></font><font color="#0000ff"><font face="Courier New, monospace">void</font></font><font face="Courier New, monospace"> button1_Click(</font><font color="#0000ff"><font face="Courier New, monospace">object</font></font><font face="Courier New, monospace"> sender, </font><font color="#2b91af"><font face="Courier New, monospace">EventArgs</font></font><font face="Courier New, monospace"> e)</font></font><font size="2"> </font><br />
	<font face="Courier New, monospace" size="2">{</font><font size="2"> </font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff"><font face="Courier New, monospace">byte</font></font><font face="Courier New, monospace">[] dizi = </font><font color="#0000ff"><font face="Courier New, monospace">new</font></font><font color="#0000ff"><font face="Courier New, monospace">byte</font></font><font face="Courier New, monospace">[10];</font><font color="#008000"><font face="Courier New, monospace">// 10&rsquo;luk bir dizi a&ccedil;ıyoruz<br />
	</font></font></font><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">rastgele.NextBytes(dizi);</font><font color="#008000"><font face="Courier New, monospace">//dizinin i&ccedil;ini byte tipine rastgele sayılarla doldurur.&nbsp;</font></font></font><font size="2"><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff"><font face="Courier New, monospace">&nbsp;&nbsp; foreach</font></font><font face="Courier New, monospace"> (</font><font color="#0000ff"><font face="Courier New, monospace">byte</font></font><font face="Courier New, monospace"> eleman </font><font color="#0000ff"><font face="Courier New, monospace">in</font></font><font face="Courier New, monospace"> dizi) </font></font><font size="2"><font color="#008000"><font face="Courier New, monospace">// dizi i&ccedil;indeki b&uuml;t&uuml;n elemanları gezmek i&ccedil;in foreach d&ouml;ng&uuml;s&uuml;n&uuml; kullanırız.<br />
	</font></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">{</font></font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">listBox1.Items.Add(eleman); </font><font color="#008000"><font face="Courier New, monospace">// dizinin i&ccedil;indeki elemanları teke tek listbox i&ccedil;ine atar.</font></font></font><font size="2"> </font><br />
	<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, monospace">}</font>&nbsp;</font><br />
	<font face="Courier New, monospace" size="2">}<br />
	<img src="http://img217.imageshack.us/img217/162/90016579gt3.jpg" /><br />
	</font><br />
	<font size="2">Random sınıfını kullanarak bir &ccedil;ok program yapabilirsiniz. &Ouml;rnek olarak zar atma programı olabilir.<br />
	</font></p>
<p><!-- Signature --><br />
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-kuyruk-queue-sinifi/" title="C# Kuyruk (Queue) Sınıfı" rel="bookmark inlinks">C# Kuyruk (Queue) Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-arraylist-sinifi-tum-ozellikleri/" title="C# ArrayList Sınıfı (Tüm Özellikleri)" rel="bookmark inlinks">C# ArrayList Sınıfı (Tüm Özellikleri)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-listview-kontrolu/" title="C# ListView Kontrolü" rel="bookmark inlinks">C# ListView Kontrolü</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-delegeler/" title="C# Delegeler" rel="bookmark inlinks">C# Delegeler</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/" title="ASP.NET Gridview içine hyperlink eklemek" rel="bookmark inlinks">ASP.NET Gridview içine hyperlink eklemek</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/" title="Icon Finder icon arama motoru" rel="bookmark inlinks">Icon Finder icon arama motoru</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/01/c-random-sinifi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Gridview içine hyperlink eklemek</title>
		<link>http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/</link>
		<comments>http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 00:16:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Kontroller]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://gazibmt.org/blog/?p=30</guid>
		<description><![CDATA[Bir proje&#160;yaparken gridview i&#231;indeki kayıtların id&#8217;sini alıp d&#252;zenlemem gerekti. Bunun i&#231;in de her kayıdın yanına bir hyperlink koydum. Bu link kayıtı d&#252;zenledğim sayfaya g&#246;t&#252;r&#252;yor ve querystrin olarak da kaydın id&#8217;sini alıyor. Aşağıdaki kodları inceleyince daha rahat analayabilirsiniz.
Yazan: Yakup Buğra Bozkurt

&#60;asp:HyperLinkField DataNavigateUrlFields=&#34;id&#34; ControlStyle-ForeColor=&#34;Blue&#34; ItemStyle-Width=&#34;80px&#34; DataNavigateUrlFormatString=&#34;d&#252;zenle.aspx?id={0}&#34; Text=&#34;D&#252;zenle&#34; HeaderText=&#34;D&#252;zenle&#34;&#62;
&#60;/asp:HyperLinkField&#62;
Bu kodu gridview&#8217;daki s&#252;tunların bulunduğu&#60;Columns&#62;&#60;/Columns&#62;&#160;&#160; etiketlerinin arasına koyarsanız design kısmında [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img align="left" alt="" height="100" hspace="10" src="http://gazibmt.org/blog/wp-content/uploads/image/resim/aspx.png" width="100" />Bir proje&nbsp;yaparken gridview i&ccedil;indeki kayıtların id&rsquo;sini alıp d&uuml;zenlemem gerekti. Bunun i&ccedil;in de her kayıdın yanına bir hyperlink koydum. Bu link kayıtı d&uuml;zenledğim sayfaya g&ouml;t&uuml;r&uuml;yor ve querystrin olarak da kaydın id&rsquo;sini alıyor. Aşağıdaki kodları inceleyince daha rahat analayabilirsiniz.</p>
<p><strong>Yazan</strong>: Yakup Buğra Bozkurt</p>
<p><span id="more-30"></span></p>
<p><font color="#993333">&lt;asp:HyperLinkField </font><font color="#ff0000">DataNavigateUrlFields</font>=<font color="#0000ff">&quot;id&quot;</font> <font color="#ff0000">ControlStyle-ForeColor</font>=<font color="#0000ff">&quot;Blue&quot;</font> <font color="#ff0000">ItemStyle-Width</font>=<font color="#0000ff">&quot;80px&quot;</font> <font color="#ff0000">DataNavigateUrlFormatString</font>=<font color="#0000ff">&quot;d&uuml;zenle.aspx?id={0}&quot; </font><font color="#ff0000">Text</font>=<font color="#0000ff">&quot;D&uuml;zenle&quot;</font> <font color="#ff0000">HeaderText</font>=<font color="#0000ff">&quot;D&uuml;zenle&quot;</font>&gt;</p>
<p><font color="#993333">&lt;/asp:HyperLinkField&gt;</font></p>
<p>Bu kodu gridview&rsquo;daki s&uuml;tunların bulunduğu<font color="brown">&lt;Columns&gt;&lt;/Columns&gt;</font>&nbsp;&nbsp; etiketlerinin arasına koyarsanız design kısmında gridview&rsquo;a bir s&uuml;tunun daha eklendiğini g&ouml;receksiniz.</p>
<p><img src="http://img526.imageshack.us/img526/1064/adszinm.jpg" /></p>
<p><font color="#ff0000">DataNavigateUrlFields</font>=<font color="#0000ff">&quot;id&quot;</font>&nbsp; koduyla linkimizin alacağı querystringi&rsquo;te ne taşıyacağını belirtiyoruz.</p>
<p><font color="#ff0000">DataNavigateUrlFormatString</font>=<font color="#0000ff">&quot;d&uuml;zenle.aspx?id={0}&quot;</font>&nbsp;&nbsp; bu kodla ise linkimizi belirtiyoruz. <font color="#0000ff">{0} </font>kısmına yukarda belittiğimiz id gelecek ve link tamamlanmış olacak.</p>
<p><!-- Signature --><br />
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/" title="C# ile web sitesinin kaynak kodlarını okuma" rel="bookmark inlinks">C# ile web sitesinin kaynak kodlarını okuma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-listview-kontrolu/" title="C# ListView Kontrolü" rel="bookmark inlinks">C# ListView Kontrolü</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/" title="Icon Finder icon arama motoru" rel="bookmark inlinks">Icon Finder icon arama motoru</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/" title="C# Windows formda bilgi taşıma" rel="bookmark inlinks">C# Windows formda bilgi taşıma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/" title="C# Params İfadesi" rel="bookmark inlinks">C# Params İfadesi</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# ile web sitesinin kaynak kodlarını okuma</title>
		<link>http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/</link>
		<comments>http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 00:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://gazibmt.org/blog/?p=27</guid>
		<description><![CDATA[Aşağıdaki kodlar ile web sitesinin kaynak kodunu alıp web browser&#8217;a y&#252;kleyebiliyoruz. Basit ve kısa bir yazı&#160;:)&#160;Kodların başına&#160;aşağıdaki namepspace&#8217;leri eklemeliyiz. 
	
	
&#160;
using System.Net;
	using System.IO;
	Uri ur1 = new Uri(&#34;http://www.gazibmt.org&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
	WebRequest webReq=WebRequest.Create(ur);&#160;
	WebResponse webRes=webReq.GetResponse();
	&#160;&#160;&#160;
	Stream okuma=webRes.GetResponseStream();&#160;&#160;
	StreamReader okuyucu = new StreamReader(stre);
	&#160;&#160;
	string html = okuyucu.ReadToEnd();&#160;
	&#160;&#160;
	webBrowser1.DocumentText = html; 
Yazan: Yakup Buğra Bozkurt

İlgili Yazılar

Visual Studio Class Diagram Kullanımı( 0 )
C# Random Sınıfı( 0 )
Icon Finder icon [...]]]></description>
			<content:encoded><![CDATA[<p><font size="2"><img align="left" alt="" height="100" hspace="5" src="http://gazibmt.org/blog/wp-content/uploads/image/resim/csharp.png" width="100" />Aşağıdaki kodlar ile web sitesinin kaynak kodunu alıp web browser&rsquo;a y&uuml;kleyebiliyoruz. Basit ve kısa bir yazı&nbsp;:)&nbsp;Kodların başına&nbsp;aşağıdaki namepspace&rsquo;leri eklemeliyiz. <br />
	</font><font color="blue"><br />
	</font></p>
<p>&nbsp;</p>
<p><font color="blue"><font face="Courier New, Courier, mono" size="2">using</font></font><font face="Courier New, Courier, mono" size="2"> System.Net;<br />
	<font color="blue">using</font> System.IO;</p>
<p>	<font color="#00cccc">Uri </font>ur1 = <font color="blue">new</font> <font color="#00cccc">Uri</font>(<font color="brown">&quot;http://www.gazibmt.org&quot;</font>);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
	<font color="#00cccc">WebRequest </font>webReq=<font color="#00cccc">WebRequest</font>.Create(ur);&nbsp;<br />
	<font color="#00cccc">WebResponse </font>webRes=webReq.GetResponse();<br />
	&nbsp;&nbsp;&nbsp;<br />
	<font color="#00cccc">Stream </font>okuma=webRes.GetResponseStream();&nbsp;&nbsp;<br />
	<font color="#00cccc"><font color="#00cccc">StreamReader</font> </font>okuyucu = <font color="blue">new</font> <font color="#00cccc">StreamReader</font>(stre);<br />
	&nbsp;</font><font size="2"><font face="Courier New, Courier, mono"><font color="blue">&nbsp;<br />
	string</font> html = okuyucu.ReadToEnd();&nbsp;<br />
	&nbsp;&nbsp;<br />
	webBrowser1.DocumentText = html;</font> </font></p>
<p><font size="2"><strong>Yazan:</strong> Yakup Buğra Bozkurt</font></p>
<p><!-- Signature --><br />
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/02/guncel-im-sosyal-imleme-sitesi/" title="Güncel.im Sosyal İmleme Sitesi" rel="bookmark inlinks">Güncel.im Sosyal İmleme Sitesi</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/" title="Icon Finder icon arama motoru" rel="bookmark inlinks">Icon Finder icon arama motoru</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/" title="C# Params İfadesi" rel="bookmark inlinks">C# Params İfadesi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/" title="C# Windows formda bilgi taşıma" rel="bookmark inlinks">C# Windows formda bilgi taşıma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/asp-net-gridview-icine-hyperlink-eklemek/" title="ASP.NET Gridview içine hyperlink eklemek" rel="bookmark inlinks">ASP.NET Gridview içine hyperlink eklemek</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Params İfadesi</title>
		<link>http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/</link>
		<comments>http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 20:35:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Fonksiyonlar]]></category>
		<category><![CDATA[İpucu]]></category>
		<category><![CDATA[Metodlar]]></category>
		<category><![CDATA[Örnek]]></category>
		<category><![CDATA[Parametre]]></category>
		<category><![CDATA[Params]]></category>

		<guid isPermaLink="false">http://gazibmt.org/blog/?p=5</guid>
		<description><![CDATA[Bu makalede kullanımı olduk&#231;a yararlı olan params ifadesinin kullanımını inceleyeceğiz. &#160;Yeni bir metod oluşturduğumuzda girmek istediğimiz bilgileri parametrelere aktarabiliyor ve bu parametreleri metod i&#231;erisinde kullanabiliyoruz. Fakat ne kadar parametre girileceği belli olmayan bir program kodu yazmak istediğimizde zorlanabiliyoruz. Bunu &#231;&#246;zmek i&#231;in de params ifadesinden yararlanıyoruz.  
&#160;
Yazan: Nuran Bahar
&#160;
Params ifadesinin kullanımı
&#160;
private void Prosed&#252;rAdi (params VeriTipi [...]]]></description>
			<content:encoded><![CDATA[<div class="entry"><img align="left" alt="" height="100" hspace="5" src="http://gazibmt.org/blog/wp-content/uploads/image/resim/csharp.png" width="100" />Bu makalede kullanımı olduk&ccedil;a yararlı olan params ifadesinin kullanımını inceleyeceğiz. &nbsp;Yeni bir metod oluşturduğumuzda girmek istediğimiz bilgileri parametrelere aktarabiliyor ve bu parametreleri metod i&ccedil;erisinde kullanabiliyoruz. Fakat ne kadar parametre girileceği belli olmayan bir program kodu yazmak istediğimizde zorlanabiliyoruz. Bunu &ccedil;&ouml;zmek i&ccedil;in de params ifadesinden yararlanıyoruz. <strong> </strong></div>
<div class="entry">&nbsp;</div>
<div class="entry"><strong>Yazan: </strong>Nuran Bahar</div>
<div class="entry">&nbsp;</div>
<div class="entry"><span id="more-8"></span><!-- pagebreak --><span style="color: rgb(255, 0, 0);">Params ifadesinin kullanımı</span></div>
<div class="entry">&nbsp;</div>
<div class="entry"><span style="color: rgb(0, 0, 255);">private</span> void Prosed&uuml;rAdi (<span style="color: rgb(0, 0, 255);">params VeriTipi </span>[] DegiskenAdi)</div>
<div class="entry">{</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //kodlar</div>
<div class="entry">}</div>
<div class="entry">&nbsp;</div>
<div class="entry">Params ifadesinin kullanımını daha iyi anlayabilmek i&ccedil;in bir &ouml;rnek yapalım : Bu &ouml;rneğimizde arraylistin split metodunu kendimiz yazacağız.( Split metodu bir metinde belirtilen herhangi bir ayraca g&ouml;re metini b&ouml;ler ). Burada params kullanmamızın amacı ise bu ayra&ccedil;ların sayısını istediğimiz gibi verebilmektir. Projemize yeni bir class ekliyoruz:</div>
<div class="entry">&nbsp;</div>
<div class="entry"><span style="color: rgb(0, 0, 255);">class</span> <span style="color: rgb(0, 128, 128);">Class1</span></div>
<div class="entry">{</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">string</span> GirilenMetin =<span style="color: rgb(153, 51, 0);"> &quot;deneme&quot;</span>; <span style="color: rgb(0, 128, 0);"> // &ouml;ncelikle split fonksiyonu ile &nbsp;ayrılacak olan metnimizi global satırda yazıyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 128, 128);">ArrayList</span> Split(<span style="color: rgb(0, 0, 255);">params char</span>[] karakterler) &nbsp; <span style="color: rgb(0, 128, 0);">//bir arraylist d&ouml;nd&uuml;rcek olan Split fonksiyonumuzu tasarlıyoruz. Girilecek &nbsp;karakter sayısını bilmediğimiz i&ccedil;in de params ifadesini kullandık</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <span style="color: rgb(0, 0, 255);"> </span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">string</span> yenimetin =<span style="color: rgb(153, 51, 0);"> &quot;&quot;</span>; <span style="color: rgb(0, 128, 0);">//string veritipli boşluğa eşit olan bir yenimetin adında bir değişken tanımlıyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 128, 128);">ArrayList</span> listem = <span style="color: rgb(0, 0, 255);">new</span> <span style="color: rgb(0, 128, 128);">ArrayList</span>();<span style="color: rgb(0, 128, 0);"> //kullanılacak olan arraylistimizi oluşturuyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">for</span> (<span style="color: rgb(0, 0, 255);">int </span>i = 0; i &lt; GirilenMetin.Length;i++) <span style="color: rgb(0, 128, 0);">// girilen metnin t&uuml;m elemanlarına aynı işlemi yaptırmak &uuml;zere bir for d&ouml;ng&uuml;s&uuml; tasarlıyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">foreach </span>(<span style="color: rgb(0, 0, 255);">char</span> karakter<span style="color: rgb(0, 0, 255);"> in</span> karakterler)&nbsp; <span style="color: rgb(0, 128, 0);"> // foreach d&ouml;ng&uuml;s&uuml; ile karakterler dizisindeki t&uuml;m karakterleri karakter değişkenine aktarıyoruz ve aşağıdaki işlemleri uyguluyoruz:</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">if</span> (GirilenMetin[i] = = karakter )&nbsp;&nbsp; /<span style="color: rgb(0, 128, 0);">/ eğer girilenmetinin i. karakteri karakterler dizisindeki bir karaktere eşitse&nbsp; :</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listem.Add(yenimetin);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 128, 0);">// listeye yenimetini ekliyoruz ve foreach d&ouml;ng&uuml;s&uuml; sonlanırken herseferinde yenimetini boşluğa eşitliyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yenimetin = <span style="color: rgb(153, 51, 0);">&quot;&quot;</span>;</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">if </span>(karakterler.Contains(GirilenMetin[i])) &nbsp;<span style="color: rgb(0, 128, 0);"> // bu if d&ouml;ng&uuml;s&uuml;nde ise karakterler dizisinin girilenmetinin i. karakterini i&ccedil;erip i&ccedil;ermediğini kontrol ediyoruz ve eğer i&ccedil;eriyorsa hi&ccedil; bir işlem uygulamıyoruz</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">else</span> { yenimetin += GirilenMetin[i];&nbsp; <span style="color: rgb(0, 128, 0);">// ama eğer i&ccedil;ermiyorsa yenimetine girilenmetinin i.karakterini ekliyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (yenimetin != <span style="color: rgb(153, 51, 0);">&quot;&quot;</span>) &nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 128, 0);">// eğer oluşturulan yenimetinimiz boşluğa eşit değilse&nbsp; listemize yenimetini ekliyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listem.Add(yenimetin);</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">return</span> listem;&nbsp; <span style="color: rgb(0, 128, 0);">//d&ouml;n&uuml;ş değerimiz bir arraylist olduğu i&ccedil;in return ifadesiyle arraylisti d&ouml;nd&uuml;r&uuml;yoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">}</div>
<div class="entry">&nbsp;</div>
<div class="entry">Şimdi de formumuza bir buton s&uuml;r&uuml;kleyelim ve butona &ccedil;ift tıklayarak fonksiyonumuzu &ccedil;ağırmak i&ccedil;in butonun click eventine şu kodları yazalım:</div>
<div class="entry">&nbsp;</div>
<div class="entry"><span style="color: rgb(0, 128, 128);">Class1</span> yeni =<span style="color: rgb(0, 0, 255);"> new</span> Class1();&nbsp;&nbsp;&nbsp; //classımızın bir &ouml;rneğini oluşturduk.</div>
<div class="entry">&nbsp;</div>
<div class="entry"><span style="color: rgb(0, 0, 255);">private</span> void button1_Click(<span style="color: rgb(0, 0, 255);">object</span> sender, <span style="color: rgb(0, 128, 128);">EventArgs</span> e)</div>
<div class="entry">{</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 255);">foreach</span> (<span style="color: rgb(0, 0, 255);">string</span> eleman<span style="color: rgb(0, 0, 255);"> in</span> yeni.Split&nbsp; (<span style="color: rgb(153, 51, 0);">&#39; &#39;</span>,<span style="color: rgb(153, 51, 0);"> &#39;+&#39;</span>, <span style="color: rgb(153, 51, 0);">&#39;,&#39;</span>,<span style="color: rgb(153, 51, 0);">&#39;.&#39;</span>,<span style="color: rgb(153, 51, 0);">&#39;-&#39;</span>)) <span style="color: rgb(0, 128, 0);">// params ifadesi kullandığımız i&ccedil;in split metodunun i&ccedil;ine ayra&ccedil; olarak kullanmak i&ccedil;in istediğimiz kadar karakter girebiliriz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 128, 128);">MessageBox</span>.Show(eleman);&nbsp;&nbsp; &nbsp;<span style="color: rgb(0, 128, 0);">// message box ile&nbsp; split fonksiyonunun d&ouml;nd&uuml;rd&uuml;ğ&uuml; listedeki t&uuml;m elemanları g&ouml;steriyoruz.</span></div>
<div class="entry">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div class="entry">}</div>
<h3>İlgili Yazılar</h3>
<ul class="related_posts">
<li><a href="http://www.gazibmt.org/blog/2010/01/c-listview-kontrolu/" title="C# ListView Kontrolü" rel="bookmark inlinks">C# ListView Kontrolü</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-arraylist-sinifi-tum-ozellikleri/" title="C# ArrayList Sınıfı (Tüm Özellikleri)" rel="bookmark inlinks">C# ArrayList Sınıfı (Tüm Özellikleri)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/icon-finder-icon-arama-motoru/" title="Icon Finder icon arama motoru" rel="bookmark inlinks">Icon Finder icon arama motoru</a><span class="count">( 1 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-ile-web-sitesinin-kaynak-kodlarini-okuma/" title="C# ile web sitesinin kaynak kodlarını okuma" rel="bookmark inlinks">C# ile web sitesinin kaynak kodlarını okuma</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/visual-studio-class-diagram-kullanimi/" title="Visual Studio Class Diagram Kullanımı" rel="bookmark inlinks">Visual Studio Class Diagram Kullanımı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/photoshop-ile-resim-ovallestirme/" title="Photoshop ile Resim Ovalleştirme" rel="bookmark inlinks">Photoshop ile Resim Ovalleştirme</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/01/c-random-sinifi/" title="C# Random Sınıfı" rel="bookmark inlinks">C# Random Sınıfı</a><span class="count">( 0 )</span></li>
<li><a href="http://www.gazibmt.org/blog/2010/02/c-windows-formda-bilgi-tasima/" title="C# Windows formda bilgi taşıma" rel="bookmark inlinks">C# Windows formda bilgi taşıma</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.gazibmt.org/blog/2010/01/c-params-ifadesi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
