<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : Visual Studio 2010&#039;da console uygulaması</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : Visual Studio 2010&#039;da console uygulaması</description>
  <pubDate>Fri, 01 May 2026 16:45:39 +0000</pubDate>
  <lastBuildDate>Mon, 26 Mar 2012 15:10:41 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2348</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>Visual Studio 2010&#039;da console uygulaması : ke&#351;ke daha okunakl&#305; olsaym&#305;&#351;  ...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2348&amp;PID=4971#4971</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=4129" rel="nofollow">hunter19</a><br /><strong>Konu:</strong> 2348<br /><strong>Gönderim Zamanı:</strong> 26.Mart.2012 Saat 15:10<br /><br />keşke daha okunaklı olsaymış]]>
   </description>
   <pubDate>Mon, 26 Mar 2012 15:10:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2348&amp;PID=4971#4971</guid>
  </item> 
  <item>
   <title>Visual Studio 2010&#039;da console uygulaması :  Ben Sa&#287;l&#305;k M&#252;d&#252;rl&#252;&#287;&#252;nde &#231;al&#305;&#351;&#305;yorum...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2348&amp;PID=4968#4968</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=4130" rel="nofollow">mbzsoft</a><br /><strong>Konu:</strong> 2348<br /><strong>Gönderim Zamanı:</strong> 24.Mart.2012 Saat 22:37<br /><br />Ben Sağlık Müdürlüğünde çalışıyorum asp ile yaptığım resmi bir sitede  kullanacağım. Ama VS2010 da çok yeniyim ve ilk projem olacak. Görüldüğü  gibi de becerleyemedim. Tamamlamama yardımcı olursanız çok sevinirim. En alta Bakanlığın yayınladığı çalışan kodu ekliyorum. Bu kodu consol uygulamasına çevirmem lazım. Yardımlarınız için şimdiden teşekkürler.<br>//// BENİM YAZDIĞIM KOD ///////<br>// args&#091;0&#093; = mernis kullanıcı adı<br>// args&#091;1&#093; = mernis şifre<br>// args&#091;2&#093; = tc numarası<br><br><br>using System;<br>using System.Collections.Generic;<br>using System.IO;<br>using System.Linq;<br>using System.Text;<br><br><br><br>namespace ConsoleApplication2<br>{<br>&nbsp;&nbsp;&nbsp; class Program<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string&#091;&#093; args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((int)args.Length &lt; 1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Parametresiz olmaz abi..!");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextWriter streamWriter = new StreamWriter(string.Concat(args&#091;2&#093;, ".txt"));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; streamWriter.WriteLine("Veri yok!");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; streamWriter.Close();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long ınt64 = (long)-1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (long.TryParse(args&#091;2&#093;, ref ınt64))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServiceReference1.KPSServisSonucuKisiTemelBilgisi KPSServisSonucuKisiTemelBilgisi = new ServiceReference1.KPSServisSonucuKisiTemelBilgisi(ınt64);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var str1 = KPSServisSonucuKisiTemelBilgisi.Sonuc.Ad;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var str2 = KPSServisSonucuKisiTemelBilgisi.Sonuc.Soyad;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TextWriter StreamWriter = new StreamWriter(string.Concat(args&#091;2&#093;, ".txt"));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StreamWriter.WriteLine(KPSServisSonucuKisiTemelBilgisi.Sonuc.Ad);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StreamWriter.WriteLine("mbzsoft");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StreamWriter.Close();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>/////// BAKANLIĞIN KODLARI ////////////////////<br>private void button1_Click(object sender, EventArgs e)<br>        {<br>                try<br>                {<br>                    if (this.ServiceClient != null)<br>                    {<br>                        long ınt64 = (long)-1;<br>                        if (long.TryParse(this.textBox1.Text, ref ınt64))<br>                        {<br>                            KPSServisSonucuKisiTemelBilgisi kPSServisSonucuKisiTemelBilgisi = this.ServiceClient.TcKimlikNoIleKisiSorgula(ınt64)  ;<br>                            if (kPSServisSonucuKisiTemelBilgisi != null &amp;&amp; string.IsNullOrEmpty(kPSServisSonucuKisiTemelBilgi  si.Hata))<br>                            {<br>                                this.lblAd.Text = kPSServisSonucuKisiTemelBilgisi.Sonuc.Ad;<br>                                this.lblSoyad.Text = kPSServisSonucuKisiTemelBilgisi.Sonuc.Soyad;<br>                                this.lblDogumTarihi.Text = kPSServisSonucuKisiTemelBilgisi.Sonuc.DogumTarihi;<br>                            }<br>                        }<br>                    }<br>                }<br>                catch (Exception exception1)<br>                {<br>                    Exception exception = exception1;<br>                    MessageBox.Show(string.Concat("Hata:\r\n", exception.ToString()));<br>                }<br>            }<br> <br>        private void Form1_Load(object sender, EventArgs e)<br>        {<br>            this.UpdateZaman();<br>        }<br> <br>        private void UpdateZaman()<br>        {<br>            AsyncCallback asyncCallback = null;<br>            try<br>            {<br>                ServiceReference1.KPSServicesClient serviceClient = this.GetService;<br> <br>                if (asyncCallback == null)<br>                {<br>                    asyncCallback = (IAsyncResult ar) =&gt;<br>                    {<br>                        try<br>                        {<br>                            DateTime dateTime = ((KPSTestServicesClient)ar.AsyncState).EndServisUT  CZamani(ar);<br>                            Action action = () =&gt; this.lblZaman.Text = string.Format("Sunucu zamanı : {0}", dateTime);<br>                            this.lblZaman.Invoke(action);<br>                        }<br>                        catch (Exception exception1)<br>                        {<br>                            Exception exception = exception1;<br>                            Action action1 = () =&gt; MessageBox.Show(exception.ToString());<br>                            base.Invoke(action1);<br>                        }<br>                    }<br>                    ;<br>                }<br>                serviceClient.BeginServisUTCZamani(asyncCallback, this.ServiceClient);<br>            }<br>            catch (Exception exception3)<br>            {<br>                Exception exception2 = exception3;<br>                MessageBox.Show(exception2.ToString());<br>            }<br>        }						   <br><span style="font-size:10px"><br /><br />Düzenleyen mbzsoft - 29.Mart.2012 Saat 20:28</span>]]>
   </description>
   <pubDate>Sat, 24 Mar 2012 22:37:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2348&amp;PID=4968#4968</guid>
  </item> 
 </channel>
</rss>