<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1568618158695181090</id><updated>2012-02-16T13:13:13.084+02:00</updated><category term='string'/><category term='c#'/><category term='Drag and drop'/><category term='Drop'/><category term='csharp'/><category term='Drag'/><category term='c sharp'/><category term='alexandru'/><category term='auto save'/><category term='random'/><category term='ASP'/><category term='peta'/><category term='listview items'/><category term='blog'/><category term='password'/><category term='timing application'/><category term='v1.0'/><category term='usign list views'/><category term='generate'/><category term='ASP.NET'/><title type='text'>C# .NET, SQL, PL/SQL</title><subtitle type='html'>Programming Blog..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-1246937935353489412</id><published>2009-12-09T00:42:00.005+02:00</published><updated>2009-12-09T00:48:42.611+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='random'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='generate'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='c sharp'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='csharp'/><title type='text'>The new chapter..</title><content type='html'>Its been a while since a new post on the blog , a lot has happened meanwhile... but not to spoil all the details in one post i will post as we start along.&lt;br /&gt;&lt;br /&gt;Today i am working on developing a site in ASP.NET, and i am currently doing a form that has a reset pasword link. I have created a random generating password class that could be useful.&lt;br /&gt;Here it is&lt;br /&gt;&lt;br /&gt;  &lt;blockquote&gt;   public class reset_password&lt;br /&gt;    {&lt;br /&gt;        public string valoare = string.Empty; &lt;br /&gt;&lt;br /&gt;        public reset_password()&lt;br /&gt;        {&lt;br /&gt;            string capitals = "ABCDEFGHIJKLMNOPQRSTUVWXTZ";&lt;br /&gt;            string  small = "abcdefghijklmnopqrstuvwxyz";&lt;br /&gt;            string nr ="0123456789";&lt;br /&gt;            string ret = string.Empty;&lt;br /&gt;&lt;br /&gt;            Random rand = new Random();&lt;br /&gt;            for (int i = 0; i &lt; 4; i++)&lt;br /&gt;            {&lt;br /&gt;                ret += capitals[rand.Next(0, 24)];&lt;br /&gt;                ret += small[rand.Next(0, 24)];&lt;br /&gt;                ret += nr[rand.Next(0, 9)];&lt;br /&gt;            }&lt;br /&gt;            valoare = ret;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;will get back to you soon&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-1246937935353489412?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/1246937935353489412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=1246937935353489412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1246937935353489412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1246937935353489412'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/12/new-chapter.html' title='The new chapter..'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-6911550302248022429</id><published>2009-08-03T10:59:00.004+03:00</published><updated>2009-08-03T11:05:56.112+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='auto save'/><category scheme='http://www.blogger.com/atom/ns#' term='timing application'/><title type='text'>Latest version -with autosave</title><content type='html'>&lt;span style="font-size:180%;"&gt;&lt;a style="font-family: arial;" href="http://drop.io/ihcidx2#"&gt;Here&lt;/a&gt;&lt;/span&gt; it is. I also fixed a couple of bugs with the text in the description field and a couple more..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-6911550302248022429?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/6911550302248022429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=6911550302248022429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/6911550302248022429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/6911550302248022429'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/08/latest-version-with-autosave.html' title='Latest version -with autosave'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-1784568249759693460</id><published>2009-07-14T14:32:00.003+03:00</published><updated>2009-07-15T15:12:06.251+03:00</updated><title type='text'>DateTime in c#</title><content type='html'>&lt;span style="font-weight: bold;"&gt;How to get the number of working days per month (except the legal holidays for each country)?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a question that i had to answer for the timing app. Here are some great resources on &lt;span style="font-weight: bold;"&gt;DateTime&lt;/span&gt; class and also on &lt;span style="font-weight: bold;"&gt;System.Globalization&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://dotnetperls.com/datetime-parseexact"&gt;DateTime ParseExact&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dotnetperls.com/datetime-parse"&gt;Parse String Method&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dotnetperls.com/datetime-format"&gt;String Patterns and Date patterns (very important when trying to Parse)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;And here is my implementation on how to get this number:&lt;br /&gt;       private void nrZileLucratoare(int luna)&lt;br /&gt;       {&lt;br /&gt;           string numeLuna = "";&lt;br /&gt;           switch (luna)&lt;br /&gt;           {&lt;br /&gt;               case 1: numeLuna = "Jan"; break;&lt;br /&gt;               case 2: numeLuna = "Feb"; break;&lt;br /&gt;               case 3: numeLuna = "Mar"; break;&lt;br /&gt;               case 4: numeLuna = "Apr"; break;&lt;br /&gt;               case 5: numeLuna = "May"; break;&lt;br /&gt;               case 6: numeLuna = "Jun"; break;&lt;br /&gt;               case 7: numeLuna = "Jul"; break;&lt;br /&gt;               case 8: numeLuna = "Aug"; break;&lt;br /&gt;               case 9: numeLuna = "Sep"; break;&lt;br /&gt;               case 10: numeLuna = "Oct"; break;&lt;br /&gt;               case 11: numeLuna = "Nov"; break;&lt;br /&gt;               case 12: numeLuna = "Dec"; break;&lt;br /&gt;           }&lt;br /&gt;           int totalZile = DateTime.DaysInMonth(DateTime.Now.Year, luna);&lt;br /&gt;         &lt;br /&gt;           int contor=0;&lt;br /&gt;           for (int i = 1; i &lt;= totalZile; i++)&lt;br /&gt;           {&lt;br /&gt;               string Duminica = "Sun "+i+" "+numeLuna+" 9:30 AM 2009";&lt;br /&gt;               string Sambata = "Sat "+i+" "+numeLuna+" 9:30 AM 2009";&lt;br /&gt;&lt;br /&gt;               string format = "ddd d MMM h:mm tt yyyy";&lt;br /&gt;               DateTime dateTime;&lt;br /&gt;&lt;br /&gt;               if (DateTime.TryParseExact(Duminica, format, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTime))&lt;br /&gt;               {&lt;br /&gt;                   contor += 1;&lt;br /&gt;               }&lt;br /&gt;               if (DateTime.TryParseExact(Sambata, format, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTime))&lt;br /&gt;               {&lt;br /&gt;                   contor += 1;&lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;           MessageBox.Show((totalZile - contor).ToString()); // this is the actual number&lt;br /&gt;       }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-1784568249759693460?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/1784568249759693460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=1784568249759693460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1784568249759693460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1784568249759693460'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/07/datetime-in-c.html' title='DateTime in c#'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-8991407042081736031</id><published>2009-07-03T20:51:00.002+03:00</published><updated>2009-07-03T20:58:43.011+03:00</updated><title type='text'>Update</title><content type='html'>A short update on what has been going on.. well the app is running, and the guys at work are using it :).. i am working on finishing the Admin part to set up some usage statistics with the data collected from all the guys to complete the monthly metrics. It is going good, hope this weekend i will get things done and i will release the Admin part of the app and that will be the full package and on to a new project :p.&lt;br /&gt;I realize that the app is restrictive  to our department, and to that kind of reporting, it's not a general app that you can use to time any activity..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-8991407042081736031?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/8991407042081736031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=8991407042081736031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/8991407042081736031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/8991407042081736031'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/07/update.html' title='Update'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-4364348579666434201</id><published>2009-07-01T21:26:00.001+03:00</published><updated>2009-07-01T21:28:13.101+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drag'/><category scheme='http://www.blogger.com/atom/ns#' term='Drag and drop'/><category scheme='http://www.blogger.com/atom/ns#' term='listview items'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Drag and Drop - complete</title><content type='html'>I managed to implement it, here it goes:&lt;br /&gt;&lt;blockquote&gt;        private void listView1_DragDrop(object sender, DragEventArgs e)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;           string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);&lt;br /&gt;         &lt;br /&gt;           foreach(string nume in files)&lt;br /&gt;            {&lt;br /&gt;                Stream fisier = new FileStream(nume, FileMode.Open, FileAccess.Read);&lt;br /&gt;                BinaryFormatter formater = new BinaryFormatter();&lt;br /&gt;                int contor = (int)formater.Deserialize(fisier);&lt;br /&gt;                for (int i = 0; i &lt; contor; i++)&lt;br /&gt;                {&lt;br /&gt;                    Code.Inregistrare inreg = (Code.Inregistrare)formater.Deserialize(fisier);&lt;br /&gt;                    //MessageBox.Show(inreg.ToString());&lt;br /&gt;                    ListViewItem item = new ListViewItem(inreg.Data.ToString());&lt;br /&gt;                    item.SubItems.Add(inreg.Request.ToString());&lt;br /&gt;                    item.SubItems.Add(inreg.Description);&lt;br /&gt;                    item.SubItems.Add(inreg.Tara);&lt;br /&gt;                    item.SubItems.Add(inreg.Requester);&lt;br /&gt;                    item.SubItems.Add(inreg.Person);&lt;br /&gt;                    item.SubItems.Add(inreg.OraInceput.ToString());&lt;br /&gt;                    item.SubItems.Add(inreg.OraSfarsit.ToString());&lt;br /&gt;                    item.SubItems.Add(inreg.Durata.ToString());&lt;br /&gt;                    listView1.Items.Add(item);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void listView1_DragEnter(object sender, DragEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            //imi copiaza ce ii dau drag&lt;br /&gt;            e.Effect = DragDropEffects.Copy;&lt;br /&gt;           &lt;br /&gt;        }&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-4364348579666434201?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/4364348579666434201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=4364348579666434201' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/4364348579666434201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/4364348579666434201'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/07/drag-and-drop-complete.html' title='Drag and Drop - complete'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-6029312257188938915</id><published>2009-07-01T20:47:00.000+03:00</published><updated>2009-07-01T20:49:28.016+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drag'/><category scheme='http://www.blogger.com/atom/ns#' term='Drag and drop'/><category scheme='http://www.blogger.com/atom/ns#' term='listview items'/><category scheme='http://www.blogger.com/atom/ns#' term='Drop'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Drag and Drop</title><content type='html'>I found a great resource on Drag &amp;amp; Drop with step by step instructions and pics:&lt;br /&gt;&lt;a href="http://www.geekpedia.com/tutorial108_Using-drag-and-drop-operations.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-6029312257188938915?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/6029312257188938915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=6029312257188938915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/6029312257188938915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/6029312257188938915'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/07/drag-and-drop.html' title='Drag and Drop'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-9120929844955163360</id><published>2009-07-01T19:51:00.004+03:00</published><updated>2009-07-15T15:14:45.673+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='v1.0'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='timing application'/><title type='text'>Version 1.0</title><content type='html'>Finally it's here. I have finished it (as v1.0) and today was the first day it was used. I got some feedback at the end of the day regarding it :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To Implement drag and drop files from Explorer into a ListView ( this sounds a little bit tricky)&lt;/li&gt;&lt;li&gt;Make so accelerators and just "polish" a little the controls for smother access.&lt;/li&gt;&lt;/ul&gt;I have stared already reading about the drag &amp;amp; drop functions and how to implement them so, by my next post i will try to post what i came up with.&lt;br /&gt;&lt;br /&gt;Till then,  &lt;blockquote&gt;&lt;span style="font-size:180%;"&gt;&lt;a href="http://drop.io/23vwki5#"&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;here&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/blockquote&gt; is the app ( the Visual Studio 2008 project, or just go in the BIN directory to find the .exe file ;)&lt;br /&gt;Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;PS: Also a pic&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_MfYTe6eRXW0/SkuXac30kHI/AAAAAAAAAAw/itVgsjdXgtY/s1600-h/pic1.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 386px; height: 260px;" src="http://3.bp.blogspot.com/_MfYTe6eRXW0/SkuXac30kHI/AAAAAAAAAAw/itVgsjdXgtY/s320/pic1.png" alt="" id="BLOGGER_PHOTO_ID_5353539062742683762" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-9120929844955163360?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/9120929844955163360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=9120929844955163360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/9120929844955163360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/9120929844955163360'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/07/version-10.html' title='Version 1.0'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MfYTe6eRXW0/SkuXac30kHI/AAAAAAAAAAw/itVgsjdXgtY/s72-c/pic1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-5241675498950945049</id><published>2009-06-30T22:18:00.007+03:00</published><updated>2009-07-15T15:10:25.654+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='listview items'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='usign list views'/><title type='text'>List view Items in C#</title><content type='html'>I'm always using listviews in c#. In a former project i had the same issue as with the timing app: "How to select an index from selected row in the listview". I googled it and here is what i found, and works just fine:&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;&lt;code&gt;&lt;span class="kwd"&gt;for&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="kwd"&gt;int&lt;/span&gt;&lt;span class="pln"&gt; i &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="lit"&gt;0&lt;/span&gt;&lt;span class="pun"&gt;;&lt;/span&gt;&lt;span class="pln"&gt; i &lt;/span&gt;&lt;span class="pun"&gt;&lt;&lt;/span&gt;&lt;span class="pln"&gt; listView1&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;Items&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;Count&lt;/span&gt;&lt;span class="pun"&gt;;&lt;/span&gt;&lt;span class="pln"&gt; i&lt;/span&gt;&lt;span class="pun"&gt;++&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;)&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun"&gt;{&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd"&gt;if&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt;listView1&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;Items&lt;/span&gt;&lt;span class="pun"&gt;[&lt;/span&gt;&lt;span class="pln"&gt;i&lt;/span&gt;&lt;span class="pun"&gt;].&lt;/span&gt;&lt;span class="typ"&gt;Selected&lt;/span&gt;&lt;span class="pun"&gt;)&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun"&gt;{&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;  listView1&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;Items&lt;/span&gt;&lt;span class="pun"&gt;[&lt;/span&gt;&lt;span class="pln"&gt;i&lt;/span&gt;&lt;span class="pun"&gt;].&lt;/span&gt;&lt;span class="typ"&gt;Remove&lt;/span&gt;&lt;span class="pun"&gt;();&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun"&gt;}&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;UPDATE :: I found out that the code above is limited&lt;br /&gt; to deleting only the first row&lt;br /&gt;when the SelectMultipleRows option is true,&lt;br /&gt; so i googled and found a better&lt;br /&gt;alternative:&lt;br /&gt;&lt;br /&gt;while (listView1.SelectedIndices.Count &gt; 0)&lt;br /&gt;{&lt;br /&gt; listView1.Items.RemoveAt(listView1.SelectedIndices[0]);&lt;br /&gt;}&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-5241675498950945049?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/5241675498950945049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=5241675498950945049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/5241675498950945049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/5241675498950945049'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/06/list-view-items-in-c.html' title='List view Items in C#'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-7001504094629322251</id><published>2009-06-29T21:19:00.003+03:00</published><updated>2009-06-29T21:27:46.826+03:00</updated><title type='text'>Task timing App  - Update</title><content type='html'>The timing app is going smooth. I decided (because lack of time) to give up on making 2 different apps, and just to make a  "2 in 1"  to avoid using the specific defined Serialization,  (like in the previous post) and just finish it as soon as I can, but i still want to try it out and see if /how it works. Soon i will start my new job, as a PL/SQL developer. I'm really excited about this.&lt;br /&gt;&lt;br /&gt;Application.Exit();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-7001504094629322251?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/7001504094629322251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=7001504094629322251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/7001504094629322251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/7001504094629322251'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/06/timing-app-is-going-smooth.html' title='Task timing App  - Update'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-1205830002429525999</id><published>2009-06-28T14:20:00.003+03:00</published><updated>2009-06-29T21:19:29.184+03:00</updated><title type='text'>Task Timing Application</title><content type='html'>I was studying for an exam this Friday night, and out of a sudden it struck me. At my current (former) job we have to do timing on our activities and i never considered of doing an application that would facilitate this.&lt;br /&gt;So.. this is how it began..&lt;br /&gt;Today is Sunday, i think i have done about 80% percent of the project, but when i still see things that i can do with it the finish point still looks a little bit far.&lt;br /&gt;Anyway the problem i ran into today was regarding Serialization in C#.&lt;br /&gt;I want to have 2 applications : one will export data using Serialization into a binary file, that i want to open with another application. Simple i said. But the fact is when trying to open it thorough the other application, i received an error : "&lt;b&gt;&lt;i&gt;Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;I began searching on forums and here is what i found :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.codeproject.com/KB/cs/DrawWithMouse.aspx#AdvancedBinarySerialization:DeserializinganObjectIntoaDifferentTypeThantheOneItwasSerializedInto9"&gt;A post in the CodeProject forum where i am a member&lt;/a&gt;;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.diranieh.com/NETSerialization/BinarySerialization.htm"&gt;An interesting site explicitly with serialization;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;After i will make my implementation i will post it here and the final app plus source code, hopefully soon :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-1205830002429525999?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/1205830002429525999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=1205830002429525999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1205830002429525999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/1205830002429525999'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/06/task-timing-application.html' title='Task Timing Application'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-8125295936253494717</id><published>2009-06-28T14:13:00.002+03:00</published><updated>2009-06-28T14:19:16.130+03:00</updated><title type='text'>The First Post</title><content type='html'>I've created this blog for quite a while now, but i did not manage to post anything... so to get things started here i go with my 1st project :-p&lt;br /&gt;&lt;div class="csharpcode"&gt; &lt;pre&gt;&lt;span class="lnum"&gt;c#:&lt;br /&gt; &lt;/span&gt;&lt;span class="kwrd"&gt;class&lt;/span&gt; HelloWorld&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt; &lt;pre&gt;&lt;span class="lnum"&gt;    &lt;/span&gt;{&lt;/pre&gt;    &lt;pre&gt;       &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main()&lt;br /&gt;       &lt;span class="lnum"&gt;&lt;/span&gt;{&lt;br /&gt;&lt;span class="lnum"&gt;          &lt;/span&gt;System.Console.WriteLine(&lt;span class="str"&gt;"Hello, world!"&lt;/span&gt;)&lt;br /&gt;       &lt;span class="lnum"&gt;&lt;/span&gt;}&lt;br /&gt;&lt;span class="lnum"&gt;    &lt;/span&gt;}&lt;/pre&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;PL/SQL:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;            dmbs_output.put_line("Hello world");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;END;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;/&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-8125295936253494717?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/8125295936253494717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=8125295936253494717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/8125295936253494717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/8125295936253494717'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2009/06/first-post.html' title='The First Post'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568618158695181090.post-5547055723713360817</id><published>2008-11-05T13:51:00.001+02:00</published><updated>2009-02-14T23:58:05.841+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='alexandru'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='peta'/><title type='text'>Test</title><content type='html'>TEST&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1568618158695181090-5547055723713360817?l=alex-peta.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://alex-peta.blogspot.com/feeds/5547055723713360817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1568618158695181090&amp;postID=5547055723713360817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/5547055723713360817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568618158695181090/posts/default/5547055723713360817'/><link rel='alternate' type='text/html' href='http://alex-peta.blogspot.com/2008/11/out-of-curiosity.html' title='Test'/><author><name>Alex</name><uri>http://www.blogger.com/profile/12605156074937304050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
