<?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:blogger='http://schemas.google.com/blogger/2008' 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-6090087041114224527</id><updated>2024-09-04T20:20:02.236-07:00</updated><category term="c#"/><category term="csharp"/><category term="kinect"/><category term="VirtualBox"/><category term="Windows"/><category term="sdk"/><category term="Strategy"/><category term="WPF"/><category term="blog"/><category term="c# api"/><category term="foreach"/><category term="howto"/><category term="instalar kinect"/><category term="library"/><category term="movie"/><category term="nui"/><category term="observer"/><category term="ola mundo"/><category term="padrão"/><category term="sound"/><category term="wav"/><category term="winddows"/><title type='text'>kinect</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-5177572331612743310</id><published>2011-09-22T14:29:00.000-07:00</published><updated>2011-09-22T14:29:53.475-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="movie"/><title type='text'>Como reusar um projeto em C# - import project</title><content type='html'>Nesta&amp;nbsp;vídeo aula, é apresentado como podemos importar um projeto em C# para outro projeto.&lt;br /&gt;
&lt;br /&gt;
O áudio do video está péssimo, mas da pra entender pelas imagens...rs um dia eu atualizo isso...rs&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dz9e6KffEfUjHC4qzReMtxd4DNklgWUVAb3TLDhQuS_19Ds78xS-RLwpP3Jp0BxoNbryVczUPqhvunOVsKexw&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/5177572331612743310/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/como-reusar-um-projeto-em-c-import.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5177572331612743310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5177572331612743310'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/como-reusar-um-projeto-em-c-import.html' title='Como reusar um projeto em C# - import project'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total><georss:featurename>Ribeirão Preto - São Paulo, Brasil</georss:featurename><georss:point>-21.1766574 -47.8207619</georss:point><georss:box>-21.4135614 -48.1366189 -20.9397534 -47.5049049</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-2304027233115547128</id><published>2011-09-16T15:55:00.001-07:00</published><updated>2011-09-16T15:55:18.818-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Criar máquina virtual no VirtualBox</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dzOcd6lhsgv8nhRkzs8YvSywfZ5sCoaOrpxFKK9PmTjLhxLsektS4PjT03NsXiFBK31uy5H5H1nr1ed-2Rb_Q&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/2304027233115547128/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/criar-maquina-virtual-no-virtualbox.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/2304027233115547128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/2304027233115547128'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/criar-maquina-virtual-no-virtualbox.html' title='Criar máquina virtual no VirtualBox'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Ribeirão Preto - São Paulo, Brasil</georss:featurename><georss:point>-21.1766574 -47.8207619</georss:point><georss:box>-21.4135614 -48.1366189 -20.9397534 -47.5049049</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-6081759760649865987</id><published>2011-09-16T15:40:00.001-07:00</published><updated>2011-09-16T15:40:31.447-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Instalar o VirtualBox no windows 7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dwDr-_FPPJLMyo3WFzZ87zZAoKDh8whPzvnqb0OUp76MSSZVaOoZTq_20lxhhU7W_TUdmENyYg-uqCyOdadWg&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/6081759760649865987/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/instalar-o-virtualbox-no-windows-7.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/6081759760649865987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/6081759760649865987'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/instalar-o-virtualbox-no-windows-7.html' title='Instalar o VirtualBox no windows 7'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Ribeirão Preto - São Paulo, Brasil</georss:featurename><georss:point>-21.1766574 -47.8207619</georss:point><georss:box>-21.4135614 -48.1366189 -20.9397534 -47.5049049</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-6331353161112411683</id><published>2011-09-14T14:33:00.001-07:00</published><updated>2011-09-14T14:34:00.703-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="library"/><title type='text'>C# e Class Library</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/6331353161112411683/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-e-class-library.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/6331353161112411683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/6331353161112411683'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-e-class-library.html' title='C# e Class Library'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-189614672488569280</id><published>2011-09-12T18:36:00.000-07:00</published><updated>2011-09-12T18:36:27.922-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><title type='text'>override em C#</title><content type='html'>&lt;br /&gt;
public override string ToString()&lt;br /&gt;
&lt;br /&gt;
neste caso, gosto mais do annotation... :D</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/189614672488569280/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/override-em-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/189614672488569280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/189614672488569280'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/override-em-c.html' title='override em C#'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Ribeirão Preto - São Paulo, Brasil</georss:featurename><georss:point>-21.1766574 -47.8207619</georss:point><georss:box>-21.4135614 -48.1366189 -20.9397534 -47.5049049</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-2721443977837899512</id><published>2011-09-12T18:22:00.001-07:00</published><updated>2011-09-12T18:23:53.861-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="sound"/><category scheme="http://www.blogger.com/atom/ns#" term="wav"/><title type='text'>C# play wav sound</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPGuB2QuqLxSigYYiLJrv6TyP13KE5XQDsvQKwVv3jDoDETw_8RRoP2wdaJ6dXqr808fKvMMf2kvHKzimsvOz_OJufoPicHfA4CZmRHCXkMbhHw_zXt54dL6EgzKI9amMHaqVmrorHIDUS/s1600/corneta.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPGuB2QuqLxSigYYiLJrv6TyP13KE5XQDsvQKwVv3jDoDETw_8RRoP2wdaJ6dXqr808fKvMMf2kvHKzimsvOz_OJufoPicHfA4CZmRHCXkMbhHw_zXt54dL6EgzKI9amMHaqVmrorHIDUS/s1600/corneta.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
using System.Media;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void MakeSound()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SoundPlayer simpleSound = new SoundPlayer(@&quot;c:\Windows\Media\chimes.wav&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; simpleSound.Play();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/2721443977837899512/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-play-wav-sound.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/2721443977837899512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/2721443977837899512'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-play-wav-sound.html' title='C# play wav sound'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPGuB2QuqLxSigYYiLJrv6TyP13KE5XQDsvQKwVv3jDoDETw_8RRoP2wdaJ6dXqr808fKvMMf2kvHKzimsvOz_OJufoPicHfA4CZmRHCXkMbhHw_zXt54dL6EgzKI9amMHaqVmrorHIDUS/s72-c/corneta.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Ribeirão Preto - São Paulo, Brasil</georss:featurename><georss:point>-21.1766574 -47.8207619</georss:point><georss:box>-21.4135614 -48.1366189 -20.9397534 -47.5049049</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-550710186478618604</id><published>2011-09-12T18:06:00.000-07:00</published><updated>2011-09-12T18:06:04.077-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="padrão"/><category scheme="http://www.blogger.com/atom/ns#" term="Strategy"/><title type='text'>C# Padrão Strategy</title><content type='html'>&lt;blockquote&gt;
O Padrão Strategy define uma familia de algorimos, encapsula cada um deles e os torna intercambiáveis.&lt;br /&gt;A estratégia deixa o algoritimo variar independentemente dos clientes que o utilizam (use a cabeça use padrão de projeto)&lt;/blockquote&gt;
&lt;div&gt;
Ah!!! vamos tentar novamente&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote&gt;
O Padrão Strategy, garante que toda classe tenha um método, independente de como ele implementa.&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Todo animal faz um som, então usando o padrão strategy podemos garantir que todos os animais vão fazer isso, mesmo que cada animal faça alguma coisa diferente.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Animal.cs inicio&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
using System;&lt;/div&gt;
&lt;div&gt;
using System.Collections.Generic;&lt;/div&gt;
&lt;div&gt;
using System.Linq;&lt;/div&gt;
&lt;div&gt;
using System.Text;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace Strategy&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; interface Animal&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; void MakeSound();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
//Animal.cs Fim&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Dog.cs inicio&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
using System;&lt;/div&gt;
&lt;div&gt;
using System.Collections.Generic;&lt;/div&gt;
&lt;div&gt;
using System.Linq;&lt;/div&gt;
&lt;div&gt;
using System.Text;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace Strategy&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; class Dog : Animal&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void MakeSound()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Au&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
//Dog.cs Fim&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Cat.cs Inicio&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
using System;&lt;/div&gt;
&lt;div&gt;
using System.Collections.Generic;&lt;/div&gt;
&lt;div&gt;
using System.Linq;&lt;/div&gt;
&lt;div&gt;
using System.Text;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace Strategy&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; class Cat : Animal&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public String nome { get; private set; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Cat(String nome) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.nome = nome;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void MakeSound()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Miau&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
//Cat.cs Fim&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Programa.cs inicio&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
using System;&lt;/div&gt;
&lt;div&gt;
using System.Collections.Generic;&lt;/div&gt;
&lt;div&gt;
using System.Linq;&lt;/div&gt;
&lt;div&gt;
using System.Text;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace Strategy&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; // O Padrão Strategy define uma familia de algorimos, encapsula cada um deles e os torna intercambiáveis.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; // A estratégia deixa o algoritimo variar independentemente dos clientes que o utilizam&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; class Program&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Animal dog = new Dog();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Animal cat = new Cat(&quot;gato&quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dog.MakeSound();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cat.MakeSound();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cat cat2 = (Cat) cat;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(cat2.nome);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadLine();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
//programa.cs Fim&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Saída&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Au&lt;/div&gt;
&lt;div&gt;
Miau&lt;/div&gt;
&lt;div&gt;
gato&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Saída fim&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/550710186478618604/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-padrao-strategy.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/550710186478618604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/550710186478618604'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-padrao-strategy.html' title='C# Padrão Strategy'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-8193392775008164346</id><published>2011-09-12T15:47:00.001-07:00</published><updated>2011-09-12T15:47:52.711-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="foreach"/><title type='text'>c# foreach</title><content type='html'>private List&amp;lt;Visinho&amp;gt; visinhos;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
visinhos.ForEach((visinho) =&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Visinho: &quot; + visinho.nome);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/8193392775008164346/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-foreach.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/8193392775008164346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/8193392775008164346'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/c-foreach.html' title='c# foreach'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-742541535525620723</id><published>2011-09-12T15:19:00.000-07:00</published><updated>2011-09-12T15:19:42.012-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><title type='text'>Get and set C#</title><content type='html'>Isso eu achei bem bacana na sintaxe&amp;nbsp;do C#&lt;br /&gt;
&lt;br /&gt;
Para declara uma variável com seu get e set&lt;br /&gt;
&lt;br /&gt;
escopo tipo nome {escopo get; escopo set;}&lt;br /&gt;
&lt;br /&gt;
exemplo&lt;br /&gt;
&lt;br /&gt;
public string nome { get; private set; }</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/742541535525620723/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/get-and-set-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/742541535525620723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/742541535525620723'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/get-and-set-c.html' title='Get and set C#'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-7136975878344696570</id><published>2011-09-12T15:17:00.000-07:00</published><updated>2011-09-12T16:48:46.831-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="observer"/><title type='text'>Observer</title><content type='html'>Pessoal,&lt;br /&gt;
&lt;br /&gt;
Hoje estou implementando o padrão observer no C#.&lt;br /&gt;
&lt;br /&gt;
Para implementar o observer no C# existem duas interfaces&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;em&gt;IObservable&lt;/em&gt;&amp;nbsp; e&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;em&gt;IObserver&lt;/em&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Onde IObservable é a classe que esta sendo observada.&lt;br /&gt;
E IObserver é a classe que observa.&lt;br /&gt;
&lt;br /&gt;
Para exemplicar vamos fazer um sistema bem simples, sistema fofoqueira.&lt;br /&gt;
&lt;br /&gt;
Vamos ter a classe visinho, que pode fazer alguma coisa&lt;br /&gt;
&lt;br /&gt;
E a visinha fofoqueira, objservvar tudo que os visinhos fazem e vai gritar para os quatro cantos tudo o que ele fizer.&lt;br /&gt;
&lt;br /&gt;
Vamos ver comom ficam as classes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;using System;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;using System.Collections.Generic;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;using System.Linq;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;using System.Text;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;namespace VisinhaFofoqueira&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; class VisinhaFofoqueira&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Visinho&amp;gt; visinhos;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public VisinhaFofoqueira()&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visinhos = new List&amp;lt;Visinho&amp;gt;();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void monitorar(Visinho visinho){&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visinho.fofoqueira = this;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visinhos.Add(visinho);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Visinha esta monitorando o visinho: &quot; + visinho.nome);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void pararDeMonitorar(Visinho visinho) {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visinhos.Remove(visinho);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void mudou() {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Fofoqueira esta vendo que alguma coisa mudou&quot;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;namespace VisinhaFofoqueira&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; class Visinho&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string nome { get; private set; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public VisinhaFofoqueira Ffofoqueira;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public VisinhaFofoqueira fofoqueira&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Ffofoqueira; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Visinho esta sendo monitorado pela fofoqueira&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ffofoqueira = value;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Visinho(String nome)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.nome = nome; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void fazerAlgumaCoisa() {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Visnho: &quot; + nome +&quot; esta fazendo algo&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fofoqueira.mudou();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;}&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
E o main para textar...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;VisinhaFofoqueira fofoqueira = new VisinhaFofoqueira();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Visinho marcelo = new Visinho(&quot;Marcelo&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Visinho gomes = new Visinho(&quot;Gomes&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fofoqueira.monitorar(marcelo);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fofoqueira.monitorar(gomes);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; marcelo.fazerAlgumaCoisa();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Fim&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadLine();&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
O C# tem duas interfaces para implementar o padrão observer&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;em&gt;IObservable&lt;/em&gt;&amp;nbsp; e&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;em&gt;IObserver&lt;/em&gt;&amp;nbsp; mas não consegui usar ainda!!!&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #555555; font-family: Arial, Tahoma, Verdana; font-size: 12px; line-height: 20px;&quot;&gt;Abraço!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sugestões:&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/pt-br/library/dd990377.aspx&quot;&gt;http://msdn.microsoft.com/pt-br/library/dd990377.aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://brluz.wordpress.com/category/csharp/&quot;&gt;http://brluz.wordpress.com/category/csharp/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/7136975878344696570/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/observer.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/7136975878344696570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/7136975878344696570'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/observer.html' title='Observer'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-5618440729484353793</id><published>2011-09-06T16:26:00.000-07:00</published><updated>2011-09-06T16:33:18.590-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><title type='text'>Cronometro em C#</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8MnK6BrxJ6BsrLWxaYj08e6sPKABwz72bK4kuKr56lWYf5j0mHt5ArWsGxQ9B_AbK3M7BOZaDiNKG43KcgsxMz4k7gZ5xbhBzcv1-hcz_VbqzP571L4-R1nN-OAjV2b_cc9MttAr3MnM/&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8MnK6BrxJ6BsrLWxaYj08e6sPKABwz72bK4kuKr56lWYf5j0mHt5ArWsGxQ9B_AbK3M7BOZaDiNKG43KcgsxMz4k7gZ5xbhBzcv1-hcz_VbqzP571L4-R1nN-OAjV2b_cc9MttAr3MnM/&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
//Fazer o import&lt;br /&gt;
using System.Windows.Threading;&lt;br /&gt;
&lt;br /&gt;
//Declara a variável&lt;br /&gt;
private DispatcherTimer timer;&lt;br /&gt;
&lt;br /&gt;
//Iniciar&lt;br /&gt;
timer = new DispatcherTimer();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timer.Start();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timer.Interval = TimeSpan.FromSeconds(1); //vai rodar de um em um segundo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timer.Tick += timer1_Tick;&lt;br /&gt;
&lt;br /&gt;
//aça a rodar de um em um segundo&lt;br /&gt;
&amp;nbsp;private void timer1_Tick(object sender, EventArgs e){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;//ação&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/5618440729484353793/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/cronometro-em-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5618440729484353793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5618440729484353793'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/cronometro-em-c.html' title='Cronometro em C#'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8MnK6BrxJ6BsrLWxaYj08e6sPKABwz72bK4kuKr56lWYf5j0mHt5ArWsGxQ9B_AbK3M7BOZaDiNKG43KcgsxMz4k7gZ5xbhBzcv1-hcz_VbqzP571L4-R1nN-OAjV2b_cc9MttAr3MnM/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-5467452071521473989</id><published>2011-09-06T16:09:00.000-07:00</published><updated>2011-09-06T16:09:03.737-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><title type='text'>Números randomicos com C#</title><content type='html'>&lt;br /&gt;
Random rnd = new Random(DateTime.Now.Millisecond);&lt;br /&gt;
rnd.Next(0, 50) //entre 0 e 50&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/5467452071521473989/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/numeros-randomicos-com-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5467452071521473989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/5467452071521473989'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/numeros-randomicos-com-c.html' title='Números randomicos com C#'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-242814923997090864</id><published>2011-09-06T16:06:00.000-07:00</published><updated>2011-09-06T16:07:06.523-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Mensagens com C#</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Olá Mundo&quot;&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #2b91af; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #2b91af; font-family: Consolas; font-size: 13px;&quot;&gt;MessageBoxResult = &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Vai chover&quot;&lt;/span&gt;, &lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Titulo&quot;&lt;/span&gt;, &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBoxButton&lt;/span&gt;.YesNo);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;Outras possibilidades&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: normal; margin-bottom: 0.0001pt; margin-left: 0in; margin-right: 0in; margin-top: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;margin-bottom: 0in;&quot;&gt;&lt;li&gt;OK&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;OKCancel&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;YesNo&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;&lt;/span&gt;YesNoCancel&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/242814923997090864/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/mensagens-com-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/242814923997090864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/242814923997090864'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/mensagens-com-c.html' title='Mensagens com C#'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-1959239381061619916</id><published>2011-09-05T14:21:00.000-07:00</published><updated>2011-09-05T19:08:05.525-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c# api"/><category scheme="http://www.blogger.com/atom/ns#" term="kinect"/><category scheme="http://www.blogger.com/atom/ns#" term="nui"/><category scheme="http://www.blogger.com/atom/ns#" term="sdk"/><title type='text'>Como o kinect reconhece as pessoas</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
O kinect chama todas as pessoas de esqueletos, calma não fique bravo, na sua aplicação você pode chamar seus jogadores por outros nomes como He-man por exemplo, mas o kinect vai continuar chamando de esqueleto.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9.5pt;&quot;&gt;A API
NUI skeleton, é a que prove informações sobre a localização de ate dois jogadores que
estiver em frente ao kinect.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9.5pt;&quot;&gt;O que é API não encane com detalhes, é parte do SDK (vou colocar na sopa depois)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 9.5pt;&quot;&gt;Continuando...&amp;nbsp;&lt;/span&gt;Os dados lidos pelo kinects são chamados de skeleton position (posição do esqueleto), estes dados são
composto por pontos que representam o usuário.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Veja na figura que peguei na documentação do sdk os
pontos que o kinect consegue detectar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz_f6jZh2TW0TTMg4AOBqUS9c6y_lb5-Ej_voWeYMQZBANTGpUEMY7PtaO5sSmhaeTgzccxDesttRpq7azO83BXXyKQtq43fSJx1K2V0lsxDp1m1kKVR5rLR7TKUBE8VYB-nN4Eoqeq-hD/s1600/esqueleto.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz_f6jZh2TW0TTMg4AOBqUS9c6y_lb5-Ej_voWeYMQZBANTGpUEMY7PtaO5sSmhaeTgzccxDesttRpq7azO83BXXyKQtq43fSJx1K2V0lsxDp1m1kKVR5rLR7TKUBE8VYB-nN4Eoqeq-hD/s320/esqueleto.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
Banca não é, pra mim ele deveria ler os dedos também, mas tudo bem, já temos bastante pontos para brincar.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Figure&quot; style=&quot;text-align: justify;&quot;&gt;
Junto com o SDK do kinect
vem uma aplicação, onde é possível ver como o computador identifica estes
pontos, veja uma imagem que também peguei da documentação do sdk.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_W-YABgLs0gmWUG7N6ZYHWpAiqxiOLOrYXKVNLRUdp7XX7spazMEiWaS1_EEV5m5b45PMKZ1ZzLk9o8TqEopXUjDK2s4-jipPH7kW2XWcjPnfZE3pKaWbVy-qZ9mj-IxySJheNFG2vSLM/s1600/visto_pelo_kienct.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_W-YABgLs0gmWUG7N6ZYHWpAiqxiOLOrYXKVNLRUdp7XX7spazMEiWaS1_EEV5m5b45PMKZ1ZzLk9o8TqEopXUjDK2s4-jipPH7kW2XWcjPnfZE3pKaWbVy-qZ9mj-IxySJheNFG2vSLM/s320/visto_pelo_kienct.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
Cada ponto na verdade é
uma coordenada, X,Y,Z e tem o W também!!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;Confuso
com as coordenadas, calma… lembra de plano cartesiano, X é a medida horizontal,
Y é a vertical (altura meu amigo) e Z e a distancia do jogador para o kinect!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;Ta
é o W ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;W é
a distancia do kinect para o chão!&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;Veja mais uma figura para ajudar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D9IVHnsWJ0M57BY2RLmFv9rRJ7ffgxt6sOPoEYTDjLN9u4CafdRDQsCi-tqGNF5n_OvTmxKlDwEUwVsVVgtNg6ruvzCWU7ggCUqbIxrPQq6T5WJvsLooSmdf3N0uZdPxfQZ2CVliAvS7/s1600/xyzw.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D9IVHnsWJ0M57BY2RLmFv9rRJ7ffgxt6sOPoEYTDjLN9u4CafdRDQsCi-tqGNF5n_OvTmxKlDwEUwVsVVgtNg6ruvzCWU7ggCUqbIxrPQq6T5WJvsLooSmdf3N0uZdPxfQZ2CVliAvS7/s1600/xyzw.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
É isso ai!&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Bold&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Figure&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/1959239381061619916/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/como-o-kinect-reconhece-as-pessoas.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/1959239381061619916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/1959239381061619916'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/como-o-kinect-reconhece-as-pessoas.html' title='Como o kinect reconhece as pessoas'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz_f6jZh2TW0TTMg4AOBqUS9c6y_lb5-Ej_voWeYMQZBANTGpUEMY7PtaO5sSmhaeTgzccxDesttRpq7azO83BXXyKQtq43fSJx1K2V0lsxDp1m1kKVR5rLR7TKUBE8VYB-nN4Eoqeq-hD/s72-c/esqueleto.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-4575922214264173113</id><published>2011-09-05T13:40:00.000-07:00</published><updated>2011-09-19T16:41:21.152-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="instalar kinect"/><category scheme="http://www.blogger.com/atom/ns#" term="kinect"/><category scheme="http://www.blogger.com/atom/ns#" term="sdk"/><category scheme="http://www.blogger.com/atom/ns#" term="winddows"/><title type='text'>Instalação do kinect no pc</title><content type='html'>&lt;b&gt;Receita para instalar o kinect no PC&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ingerdientes&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1 - Kinect com cabo USB&lt;br /&gt;
1 - PC com entrada USB&lt;br /&gt;
1 - Windows 7 (Com updates!!!)&lt;br /&gt;
1 - SDK do kinect&lt;br /&gt;
1 - C# express&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Modo de preparo&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;Instale o windows no seu PC, em seguida realizar os updates (isso da mais sabor a todas as receitas, sempre atualize os softwares);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;Instalar o SDK do kinect (não plugue o seu kinect ainda);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;Aguarde ate que a mistura de o ponto (reboot no windows ..rs ) conecte o seu kinect ao pc.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;Conecte o cabo usb do kinect a uma porta usb do seu PC. nesta hora já deve estar sentindo um cheirinho bom em... esta quase pronto.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;Agora instale o C# express, poderiamos ter instalado o C# express antes, na verdade o para o funcionamento do Kinect o C# express não é necessário, mas sem ele você não vai ter 
(mentira) como fazer nada com o seu kinect!&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;

&lt;b&gt;Redimento&lt;/b&gt;

Muita diversão e varias noites em claro programado (Valido somente para nerd)


&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dxhNriYidUhjy8RyFq1yfN0JF1AGaGeS6PZ52RJj2UZF2hyXK6n7oe5aPmqgyHAi4nAR4NgAqKwjKce6nSIWQ&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/4575922214264173113/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/instalacao-do-kinect-no-pc.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/4575922214264173113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/4575922214264173113'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/instalacao-do-kinect-no-pc.html' title='Instalação do kinect no pc'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6090087041114224527.post-599756268388672202</id><published>2011-09-05T13:31:00.000-07:00</published><updated>2011-09-05T19:09:25.347-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="kinect"/><category scheme="http://www.blogger.com/atom/ns#" term="ola mundo"/><title type='text'>Olá mundo</title><content type='html'>Boa tarde pessoal,

Estou criando este blog para registar minhas aventuras com o kinect, no pc.

Aqui vou postar meus lembretes de kinect e c#


Abraço a todos

</content><link rel='replies' type='application/atom+xml' href='http://kinectpc.blogspot.com/feeds/599756268388672202/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://kinectpc.blogspot.com/2011/09/ola-mundo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/599756268388672202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6090087041114224527/posts/default/599756268388672202'/><link rel='alternate' type='text/html' href='http://kinectpc.blogspot.com/2011/09/ola-mundo.html' title='Olá mundo'/><author><name>Marcelo Gomes</name><uri>http://www.blogger.com/profile/02389016748770872960</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>