tag:blogger.com,1999:blog-65375492024-03-05T10:33:00.411+00:00Tiago Andrade e SilvaIT MattersUnknownnoreply@blogger.comBlogger46125tag:blogger.com,1999:blog-6537549.post-50474804521765216942012-03-04T00:30:00.002+00:002012-03-04T00:30:25.298+00:00Cifrar vs Encriptar eis a questão<div class="MsoNormal"><span lang="PT">Desde os tempos de faculdade que aprendi com o Prof. <a href="http://asc.di.fct.unl.pt/~jalm/">Legatheaux</a> que não é correcto utilizarmos um </span><span lang="PT">inglesismo quando existe um termo em Português que significa a mesma coisa, ou seja, não é correcto utilizar <strong>Encriptar</strong> quando temos o <strong>Cifrar</strong>. Desde essa altura que tenho feito este reparo a diversas pessoas quando utilizam o termo Encriptar.</span></div><div class="MsoNormal"> <span lang="PT">Recentemente encontrei novamente o termo Encriptar na revista <a href="http://pesquisa.impresa.pt/search?q=encriptar&entqr=0&sort=date%3AD%3AS%3Ad1&output=xml_no_dtd&lr=lang_pt&client=exameinformatica_frontend&filter=0&ud=1&oe=UTF-8&ie=UTF-8&proxystylesheet=exameinformatica_frontend&proxyreload=1&site=exameinformatica_collection">Exame Informática </a>e decidi indagar mais a fundo sobre a correcta utilização do mesmo. Encontrei no Ciberdúvidas algumas referências (<a href="http://ciberduvidas.sapo.pt/pergunta.php?id=16245">[aqui]</a> e <a href="http://ciberduvidas.sapo.pt/pergunta.php?id=13799">[aqui]</a>) a esta questão mas as respostas não são claras. Encontrei também uma definição da palavra Encriptar na <a href="http://www.infopedia.pt/">Infopedia</a>. Contactei novamente com o Prof. Legatheaux e coloquei a questão da banalização do termo e as repostas pouco claras dadas pelo Ciberdúvidas e a existência da palavra na Infopedia e outros dicionários.</span></div><div class="MsoNormal"> <span lang="PT">O Prof. ajudou no aprofundar e clarificar da questão tendo indicado que n</span><span lang="PT">o Dicionário da <a href="http://pt.wikipedia.org/wiki/Academia_das_Ci%C3%AAncias_de_Lisboa">Academia das Ciências de Lisboa</a> elaborado pelo Instituto de Lexicologia e Lexicografia da Academia, com suporte da <a href="http://www.gulbenkian.pt/">Gulbenkian</a>, do <a href="http://www.instituto-camoes.pt/">Instituto Camões</a> e do Ministério da Educação (edição de 2001) <strong>não há lá o termo “encriptar”</strong>. Referiu também que no mesmo dicionário há muitos termos estrangeiros como por exemplo “body building” que é um sinónimo de culturismo (sic), “abat-jour” entre outros.</span>Termos relacionados com criptografia e que se encontram no dicionário da Academia:</div>cripto-* com origem em oculto<br />
criptografia<br />
criptográfico<br />
criptograma<br />
criptologia<br />
cifrar<br />
cifra<br />
cifrado<br />
decifrar<br />
decifração<br />
decifrador<br />
decifrável<br />
<div class="MsoNormal"><span lang="PT">Concluindo, apesar de estar a ficar banalizada a utilização do termo Encriptar e da mesma existir em alguns dicionários generalistas, o termo não se encontra no dicionário de referência na área. Assim, e para os mais puristas, o mais correcto é utilizar Cifrar e não o Encriptar.</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-6494519629656567232011-07-19T01:08:00.001+01:002011-07-19T01:08:22.487+01:00Salt Lake City to Denver natural parks trip<p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFGPNpqmWY6sio_lFR1kvV5-S-MIwgokzQBoi-xBA4jUs-aWllXbKqwMifLx7Bu2iMhAM8SzHQZpI1OiUv1JkiXu-rw1AsnBxZjdtYChpWP6u5zxHBvzeNrynJOkNMOI2tBZml/s1600-h/UsaTripMap2%25255B3%25255D.jpg"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="UsaTripMap2" border="0" alt="UsaTripMap2" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-IQGxXSQaD9edBYLLZD_eARwq6NzcQ4sN9CB01nwm8h2pHrtxbHnJCnDYqFFP12olKlaIEKInXEPX7gk9FfNQ06JuFIL5slsgfMFggZF8HSfG8HqXFKsWJg7dGWG9WHOlB1IQ/?imgmax=800" width="166" height="344" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdm8FVyH9q4CvfW8_VgEc4RisSHhdO6_nMy9OMExcEqLPWEseZgU4BTWQYeU1aEHZpqj6lzClSIKiDQU_1fypA4b5VOHSprbJnN0bc7vVPxWz-9MJC-u-5FyauEymJkrJfayWD/s1600-h/UsaTripMap%25255B4%25255D.jpg"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="UsaTripMap" border="0" alt="UsaTripMap" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNCNSdHv76YrCojkTIlU548gqMs5ZTakmIqKvmF94RSRzi2PFFLLlZLdlORcekNfzrxBc321Jwsbtsmk95iaQ_gqXv7iQRS3oeyfSprAxnf6AN7-nz2TutlBGXw80Jo_9F4Vqp/?imgmax=800" width="603" height="343" /></a></p> <p>10 days, 15 natural parks,  2247 miles (~3616 km), between July  8th and 17th 2011)</p> <p>Day 1 </p> <ul> <li>Flight to Salt Lake City, Drive to Wendover </li> </ul> <p>Day 2 </p> <ul> <li><a href="http://www.utah.com/playgrounds/bonneville_salt.htm%20http:/en.wikipedia.org/wiki/Bonneville_Salt_Flats">The Bonneville Salt Flats</a> </li> <li><a href="http://en.wikipedia.org/wiki/Kennecott_Copper_Mine">CopperMine</a> </li> <li><a href="http://www.nps.gov/brca/index.htm">Bryce canyon</a> </li> </ul> <p>Day 3 </p> <ul> <li><a href="http://www.americansouthwest.net/utah/grand_staircase_escalante/national_monument.html">Grand Escalante National Parl</a> </li> <li><a href="http://www.americansouthwest.net/slot_canyons/willis_creek/canyon.html">Willis Creek</a> hike </li> <li><a href="http://www.americansouthwest.net/utah/kodachrome_basin/state_park.html">Kodacrome state park</a> </li> <li><a href="http://en.wikipedia.org/wiki/Escalante_Petrified_Forest_State_Park">Petrified Forest</a> </li> <li><a href="http://www.utah.com/hike/calf_creek.htm">Calf Creek</a> </li> <li><a href="http://en.wikipedia.org/wiki/Dixie_National_Forest">Dixie Forest</a> </li> </ul> <p>Day 4 </p> <ul> <li><a href="http://www.nps.gov/care/index.htm">Capitol Reef</a> (Great Wash hike and drive to end of scenic drive) </li> <li>Drove Morton Road and <a href="http://www.byways.org/explore/byways/2020/places/3227/">Burr trail</a> on the way to <a href="http://www.nps.gov/glca/index.htm">Glen Canyon</a> and took the <a href="http://www.canyon-country.com/lakepowell/ferry.htm">ferry at Bullfrog and Hall’s crossing</a> </li> <li><a href="http://www.nps.gov/nabr/index.htm">Natural Bridges</a> </li> </ul> <p>Day 5 </p> <ul> <li><a href="http://www.nps.gov/cany/planyourvisit/needles.htm">Cannyonlands – The Needles</a> </li> <li><a href="http://www.nps.gov/meve/index.htm">Mesa Verde</a> </li> </ul> <p>Day 6</p> <ul> <li><a href="http://www.nps.gov/arch/index.htm">Arches</a> – <a href="http://www.nps.gov/arch/planyourvisit/longtrails.htm">Devil’s Garden</a> primitive loop </li> <li><a href="http://www.nps.gov/cany/planyourvisit/islandinthesky.htm">Canyonlands – The Island in the Sky</a> </li> </ul> <p>Day 7</p> <ul> <li><a href="http://www.nps.gov/blca/index.htm">Black Canyon</a> and did the Gunnison hike to the bottom … ufff </li> </ul> <p>Day 8</p> <ul> <li>Whitewater Rafting in <a href="http://www.shoprma.com/whitewater_rafting.htm">Cache La Poudre</a> </li> <li><a href="http://www.nps.gov/romo/index.htm">Rocky Mountain National Park</a> </li> </ul> <p>Day 9</p> <ul> <li><a href="http://www.byways.org/explore/byways/2104/">Cache La Poudre-North Park Scenic and Historic Byway</a> </li> <li><a href="http://www.colorado.com/RedFeatherLakes.aspx">Red Feather Lakes</a> </li> <li><a href="http://www.parks.state.co.us/Parks/EldoradoCanyon/Pages/EldoradoCanyonHome.aspx">ElDorado springs state park</a> </li> </ul> <p>Day 10</p> <ul> <li><a href="http://en.wikipedia.org/wiki/Denver">Denver</a> </li> </ul> <p>(trip planned and mapped with <a href="http://www.microsoft.com/Streets/en-us/default.aspx">Microsoft Streets and Trips</a>)</p> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-70705112861231494592011-02-16T23:21:00.002+00:002011-02-16T23:21:57.640+00:00The Boss Who Breaks All the Rules<span style="font-size: 10pt;">Presented a talk at the <a href="http://www.scrumalliance.org/events/269-portugal" mce_href="http://www.scrumalliance.org/events/269-portugal">Scrum Gathering Portugal 2011</a> called “<b>The Boss Who Breaks All the Rules</b>” <br />
<br />
<span style="font-family: Times New Roman; font-size: small;"><a href="http://www.slideshare.net/tiagonmas/the-boss-who-breaks-all-the-rules">http://www.slideshare.net/tiagonmas/the-boss-who-breaks-all-the-rules</a></span><br />
<br />
<span style="font-family: "Arial","sans-serif"; font-size: 10pt;">"For 25 years, Ricardo Semler has been putting into practice what increasing numbers of modern management gurus are now preaching. He heads a democratic company, Semco, where employees set their hours, determine their salaries and choose their bosses. In this session we will talk about the main management changes that Semco introduced, which are very aligned with the agile mindset. We’ll also hear from managers of five companies on their real and concrete experience in putting some of these concepts in practice.<o:p></o:p></span><br />
<span style="font-family: Times New Roman; font-size: small;"><br />
</span><span style="font-family: "Arial","sans-serif"; font-size: 10pt;">Invited speakers for this session: Rui Pedro Alves (Partner at Rupeal), Jurgen Appelo (Book author “Management 3.0”), João Pedro Martins (CTO at Create.IT), Alexandre Magno (Principal at AdaptWorks) and Miguel Muñoz Duarte (Partner at Imatch)<o:p></o:p></span><span style="font-family: Times New Roman; font-size: small;"><br />
"</span></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-4883145001581127872010-08-06T15:27:00.000+01:002010-08-06T15:27:47.291+01:00Videos das apresentações no Ignite PortugalDesde a primeira edição que achei a ideia do <a href="http://igniteportugal.blogspot.com/">Ignite </a>bastante interessante. Foi orador no primeiro Ignite, virei colaborador da iniciativa, e fiz mais algumas apresentações. Recentemente foram publicados os vídeos de algumas destas sessões, nomeadamente duas que eu apresentei:<br />
<br />
"Como galinhas e porcos nos podem ajudar a gerir projectos tecnológicos"<br />
É com este título curioso que Tiago Andrade e Silva nos brinda com a versão 2.0 deste talk. Segundo ele há que mudar o paradigma de gestão de projectos, tornando-os mais ágeis e adaptáveis, dando empowerment às equipas, de forma a conseguir melhores resultados e ir mais facilmente ao encontro da satisfação dos clientes. Escusado será dizer que nos dias turbulentos que correm, isto é ainda mais importante.<br />
<a href="http://www.youtube.com/watch?v=CLh6YAIqn8k">ver o video >></a><br />
<br />
Justiça Premium<br />
"Tiago Andrade e Silva, um habitué do Ignite Portugal, traz-nos nestetalk um tema que muitos consideram polémico: Justiça Premium. Segundo poderiam começar a haver alternativas de tribunais privados, à semelhança do que já existe na Saúde e na Educação. Isto iria trazer vantagens a todos, pois acelerava, por um lado, os processos, e escoava muitos casos dos Tribunais públicos, por outro, fazendo com que todo o sistema fluísse de uma forma muito mais eficaz."<br />
<a href="http://www.youtube.com/watch?v=2BvKkW9vosg"> ver vídeo >> </a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-57392534354812621652010-08-06T15:09:00.001+01:002010-08-06T15:10:07.440+01:00Tradução do Manifesto para o Desenvolvimento Ágil de SoftwareFoi recentemente terminada a tradução para Português do Manifesto Ágil a qual tive o prazer de liderar. Obrigado a todos pela revisão e envio de sugestões.<br />
A versão final pode ser vista em <a href="http://www.agilemanifesto.org/iso/ptpt/">http://www.agilemanifesto.org/iso/ptpt/</a><br />
<br />
Excerto do manifesto:<br />
<br />
<br />
<div style="text-align: center;"><b><span class="Apple-style-span" style="font-size: x-large;">Manifesto para o Desenvolvimento Ágil de Software</span></b></div><div style="text-align: center;"><br />
</div><div style="text-align: center;">Ao desenvolver e ao ajudar outros a desenvolver software,</div><div style="text-align: center;">temos vindo a descobrir melhores formas de o fazer.</div><div style="text-align: center;">Através deste processo começámos a valorizar:</div><div style="text-align: center;"><br />
</div><div style="text-align: center;"><span class="Apple-style-span" style="font-size: x-large;"><b>Indivíduos e interacções</b> mais do que processos e ferramentas</span></div><div style="text-align: center;"><span class="Apple-style-span" style="font-size: x-large;"><b>Software funcional</b> mais do que documentação abrangente</span></div><div style="text-align: center;"><span class="Apple-style-span" style="font-size: x-large;"><b>Colaboração com o cliente</b> mais do que negociação contratual</span></div><div style="text-align: center;"><span class="Apple-style-span" style="font-size: x-large;"><b>Responder à mudança</b> mais do que seguir um plano</span></div><div style="text-align: center;"><span class="Apple-style-span" style="font-size: x-large;"><br />
</span></div><div style="text-align: center;">Ou seja, apesar de reconhecermos valor nos itens à direita,</div><div style="text-align: center;">valorizamos mais os itens à esquerda. </div><div><br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-5316634308006006492010-07-26T09:58:00.006+01:002010-07-27T09:33:47.245+01:00Bitocast - A hybrid BitTorrent and IP Multicast content distribution solutionDelivered and fininshed in January 2010 my Master thesis in Computer Science.<br />
<br />
Master in computer science for Universidade Nova de Lisboa - Faculdade de Ciências e Tecnologia - Departamento de Informática<br />
<br />
<strong>Abstract of the Master thesis:</strong><br />
In recent years we have observed an increased use of the Internet as a means for transmitting <br />
large content. There have been several technology attempts to attack this problem, including <br />
costly distribution networks and, more recently, peer to peer (P2P) protocols. Amongst <br />
these P2P protocols, BitTorrent has proven itself as an effective means for transmitting large <br />
content items and today enjoys great popularity. <br />
<br />
Numerous researchers have analyzed BitTorrent and proposed concepts and models to enhance <br />
its reliability, efficiency and fairness. Further, there are proposals to extend BitTorrent <br />
to support on-demand multimedia streaming. In this Dissertation we present Bitocast, a <br />
content distribution system that combines IP Multicast and BitTorrent protocols in order to <br />
achieve a more efficient usage of an Internet Service Provider’s network and reduce download <br />
time when serving large sets of contents to large audiences.<br />
<br />
Download Bitocast Master thesis available at<br />
<a href="http://dl.dropbox.com/u/9208443/bitocast.pdf" title="http://dl.dropbox.com/u/9208443/bitocast.pdf">http://bit.ly/cE8a0a </a><br />
Presentation available at:<br />
<a href="http://bit.ly/9jfde3">http://bit.ly/9jfde3</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-80123738570969916902010-07-15T10:36:00.001+01:002010-07-15T10:36:26.214+01:00Seminário: Como galinhas e porcos ajudam a gerir projectos de Marketing Digital<p> </p> <p>No passado dia 8 de Julho, apresentei um seminário sobre gestão de projectos com metodologias ágeis, no <a href="http://www.ipam.pt/">IPAM</a>, no âmbito da <a href="http://www.ipam.pt/conteudo.aspx?c=3&a=221">Pós-Graduação em Marketing Digital</a>. </p> <table border="0" cellspacing="0" cellpadding="0"><tbody> <tr> <td width="533"> <p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSFoRcwMUnDCOk8Wvy_yV-BbOaXF4bfUinullX-R8QJKReDzN9oa1cNogCRQNwNiVQqwLTWb979B3hej_bQ2WLTBI2g4WhbM7O04DwNdNhwWE0OOGIVLJEpRdqX6k6eMfiaKqT/s1600-h/clip_image001%5B3%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRoL1sW1TDzqhxSU8TrxzFYYr_EEhOGI7ZGUUi1yhanZ9j6z3ge3Brvz-yt4uSbS_PfJhc2w-E7ZwVkYV2I9aacuH1ocR9YbXwmxaIffFzMO_okJe9rkvK4aq44GbAKx437sYC/?imgmax=800" width="244" height="67" /></a></p> </td> </tr> <tr> <td width="533"> </td> </tr> <tr> <td valign="bottom" width="533"> <p><b>SEMINÁRIO</b></p> <p><b></b></p> <p><b>Convite,</b></p> <p><b></b></p> <p>Pós Graduação / Executive Master em Marketing Digital</p> <p>Tema: <b>Como galinhas e porcos ajudam a gerir projectos de Marketing Digital</b><b></b></p> <p><b></b></p> <p>Tópicos a abordar:</p> <p>Os problemas da gestão de projectos tradicional</p> <p>Como gerir projectos de forma ágil</p> <p>A framework Scrum</p> <p><b></b></p> <p>Orador: <a name="HeitorFox"></a>Tiago Andrade e Silva<b></b></p> <p><b><i>Tiago Andrade e Silva</i></b><i> é actualmente o Director Técnico do Grupo Fullsix Portugal, empresa especializada em Marketing Interactivo. Tem cerca de 14 anos de experiência na indústria de desenvolvimento e gestão de projectos de Software, em especial para a Web. É Mestre em Eng. Informática e pós graduado em Gestão de Empresas Tecnológicas. </i></p> <p>Dia: <b>8 de Julho</b></p> <p>Local: <b>IPAM Lisboa, 3º Piso, Auditório</b></p> <p>Horário: das <b>19H00 às 21h00</b></p> </td> </tr> </tbody></table> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-3078133689161321592010-07-15T10:32:00.001+01:002010-07-15T10:32:41.218+01:00HTML5: A concorrência ao Flash dominante<p>Fui recentemente entrevistado telefonicamente para a Exame Informática de Julho, artigo “HTML5: A concorrência ao Flash dominante” <br />O artigo completo pode ser visto <a href="http://issuu.com/fabiomb/docs/exame_inform_tica_julho_2010">online</a>  (pág 88). Claro que aquilo que dizemos é sempre um pouco alterado para o artigo, mas eis um excerto:</p> <p>  <br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRNyygUYF8XytSYkluHb3hQKrgHSIYX8waO7tsgtWETB2DEGrKQnZcTKnjaiAtTMVS5G6ZBcb1i0p6x-gRtd95A9kb3O_qI5FkC5chfElCLphrC22CCJ-5bxAoFlfAYnAu5HAw/s1600-h/clip_image002%5B4%5D%5B4%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002[4]" border="0" alt="clip_image002[4]" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1BxHqEclGO0719lyPxe7rnuAst1FB2BprhjGMJmEcBA4UCte8Cq0SU4eUn-nOuo-R5YmiIcM7vvU4wf2bY2wsv6Yej9p5MRYHPqyOU2nrp7Tv-hiuDOgbrNW8XzkkscEOnTWR/?imgmax=800" width="938" height="401" /></a></p> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-78411554542130169982010-05-10T14:42:00.007+01:002010-05-10T14:56:58.803+01:00FarSeer in Microsoft SurfaceLast year (2009) I ported <a href="http://farseerphysics.codeplex.com/">Farseer physics engin</a>e to Microsoft Surface. With that I was able to do same demo projects. You can see some of the videos of the apps<a href="http://www.youtube.com/watch?v=uzpIlDIVShA"> [1]</a>, <a href="http://www.youtube.com/watch?v=J8nc6HcTuQI">[2]</a>, <a href="http://www.youtube.com/watch?v=rRlM6K7RQOc">[3]</a>, <a href="http://www.youtube.com/watch?v=xlZI4akPGdQ">[4]</a>. One of these sample projects was even shown at the<a href="http://www.youtube.com/watch?v=sbMWkdox_CM"> keynote of Microsoft Dev Days 2009</a>.<div><br /></div><div>Since several people asked me for the source code, I'm putting it <a href="http://www.fullsix.pt/tas/SurfaceSimpleSamples.rar">here</a>, available for download. It was developed on older versions of farseer and of Surface sdk, but I was informed it is still working under current versions. If you download and use it, please be so kind as to leave a comment.<br /><div><br /></div><div>I talked with the people responsible for Farseer about the possibility of having Surface was one of the platforms, but their response was:</div><div><p><span><a href="http://www.codeplex.com/site/users/view/genbox"><span class="Apple-style-span" style="font-family:arial;"><span class="Apple-style-span" style="font-size:small;">genbox</span></span></a><span class="Apple-style-span" style="font-family:arial;"><span class="Apple-style-span" style="font-size:small;">: "... I don't see Microsoft Surface being the next huge gaming platform in the near future. :) If I include it in the source tree, a couple of people might download it and have good use of it, but I would also have to maintain the code. Every time I change the API in Farseer Physics each change must be implemented into the samples too - We are simply too few people (and don't have the hardware) to maintain a huge selection of samples on different platforms."<o:p></o:p></span></span></span></p></div><div><br /></div><div><a href="http://www.youtube.com/watch?v=uzpIlDIVShA"></a> <div><br /></div></div></div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6537549.post-44153404593252561732010-04-21T15:45:00.001+01:002010-04-21T15:45:54.699+01:00Tradução do Agile Manifesto (www.agilemanifesto.org) para Português!<span class="Apple-style-span" style="font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 13px; line-height: 16px; ">A Agile Alliance iniciou um projecto de tradução do Manifesto Ágil para múltiplas línguas. Aceitar ficar como responsável pela tradução para Português. Quem tiver interesse em colaborar nesta tradução, pode <a href="http://spreadsheets.google.com/viewform?hl=en&formkey=dHVNbXN0T05jZ0NPRzV3Tm4wSjFTWWc6MA" target="_blank" style="color: rgb(76, 122, 158); text-decoration: none; ">dar a sua opinião online</a><br /><br /><a href="http://www.agilealliance.org/show/2548" target="_blank" style="color: rgb(76, 122, 158); text-decoration: none; ">Mais informações sobre o projecto</a></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-34411439041471847342010-03-02T11:53:00.000+00:002011-03-02T11:54:39.538+00:00Scrum ganha visibilidade em PortugalEntrevista para a semana informática sobre Scrum<br />
<br />
<a href="http://www.semanainformatica.xl.pt/965/emp/100.shtml">http://www.semanainformatica.xl.pt/965/emp/100.shtml</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-15780537892607128912009-12-15T10:55:00.005+00:002009-12-15T14:21:29.027+00:00Car trip from Phoenix to San Francisco<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYsXZBHSKkQSbo0gckCksqRLKCq6e5G6ocfzQm5q4uuB-DEgTUCAZBTaRTDkGd7ig8r-mk1fwSWO17FapSIkskoY4PGqFcrSHrFg7Ujn4bfaSCJ4TNmKDiT6Gsjr4_DriLIT-c/s1600-h/usa.jpg"><img style="MARGIN: 0px 10px 10px 0px; WIDTH: 400px; FLOAT: left; HEIGHT: 262px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5415414969357180594" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYsXZBHSKkQSbo0gckCksqRLKCq6e5G6ocfzQm5q4uuB-DEgTUCAZBTaRTDkGd7ig8r-mk1fwSWO17FapSIkskoY4PGqFcrSHrFg7Ujn4bfaSCJ4TNmKDiT6Gsjr4_DriLIT-c/s400/usa.jpg" /></a><br /><div>From Phenix to San Francisco car trip.<br />2210 miles (3556 km), 12 days (29 Nov to 9 Dec 2009).<br /><a title="usa.jpg" href="file:///C:/Users/tas/Desktop/usa.jpg"></a><br /><strong>Day 1</strong><br />1 Phoenix [<a href="http://www.bing.com/maps/default.aspx?q=phoenix&mkt=en-US&FORM=BYFD">map</a>, photos, info]<br />3. Sedona [<a href="http://www.bing.com/maps/default.aspx?q=&mkt=en-US&FORM=BYFD#JnE9eXAuc2Vkb25hK2FyaXpvbmElN2Vzc3QuMCU3ZXBnLjEmYmI9MzQuOTY2NDgzMDIxNTAyNCU3ZS0xMTEuNTQ3NjIzMzUxMjE2JTdlMzQuNzY1MzUzOTk4NTM5NyU3ZS0xMTEuOTc5ODY2Njk4Mzg0">map</a>, <a href="http://www.flickr.com/search/?w=all&q=sedona&m=text">photos</a>, info]<br />4. Oak Creek Canyon [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=oak+creek+canyon&sll=38.707163,-9.135517&sspn=0.381509,0.843201&ie=UTF8&hq=oak+creek+canyon&hnear=&radius=15000&ll=34.881214,-111.748037&spn=0.050132,0.1054&z=14">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Oak+Creek+Canyon&m=text">photos</a>, info]<br />6. Navajo National Monument [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Navajo+National+Monument,+arizona&sll=33.448377,-112.074037&sspn=0.815839,1.686401&g=phoenix,+arizona&ie=UTF8&hq=Navajo+National+Monument&hnear=Navajo+National+Monument,+Tonalea,+AZ+86033&ll=36.691547,-110.536194&spn=0.378258,0.843201&z=11&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Navajo+National+Monument&m=text">photos</a>, <a href="http://www.nps.gov/nava/index.htm">info</a>]<br />7. Kayenta [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=kayenta,+arizona&sll=36.691547,-110.536194&sspn=0.378258,0.843201&ie=UTF8&hq=&hnear=Kayenta,+Navajo,+Arizona&ll=36.721274,-110.254669&spn=0.391873,0.843201&z=11">map</a>, photos, info]<br />8. Monument Valley [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Monument+Valley,+utah&sll=36.991372,-110.193867&sspn=0.097623,0.2108&ie=UTF8&hq=&hnear=Oljato-Monument+Valley,+San+Juan,+Utah&z=11">map</a>, <a href="http://images.google.com/images?sa=N&hl=en&tab=li&q=Monument+Valley,+utah">photos</a>, <a href="http://www.americansouthwest.net/utah/monument_valley/">info</a>] 9. Page [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=page,+arizona&sll=36.877818,-111.500909&sspn=0.011792,0.02635&ie=UTF8&hq=&hnear=Page,+Coconino,+Arizona&ll=36.908176,-111.455612&spn=0.390917,0.843201&z=11">map</a>, photos, info]<br /></div><div><strong></strong></div><div><strong>Day 2</strong><br />9.1 Horseshoe bend [<a href="http://maps.google.com/maps?hl=en&q=horseshoe+bend,+page,+arizona&ie=UTF8&hq=horseshoe+bend,&hnear=Page,+AZ&ll=36.877818,-111.500909&spn=0.011792,0.02635&z=16&iwloc=B">map</a>, <a href="http://www.flickr.com/search/?w=all&q=horseshoe+Page+arizona&m=text">photos</a>, info]<br />9.2 Antilope Canyon [map, <a href="http://www.flickr.com/search/?w=all&q=Antilope+Canyon+Page+arizona&m=text">photos</a>, <a href="http://www.antelopecanyon.com/">info</a>]<br />10. Grand Canyon National Park - South Rim [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Grand+Canyon+National+Park+-+South+Rim,+arizona&sll=36.952773,-111.441278&sspn=0.012209,0.02635&ie=UTF8&hq=Grand+Canyon+National+Park&hnear=Grand+Canyon+National+Park,+Grand+Canyon,+AZ+86036&ll=36.058259,-112.125607&spn=0.023834,0.0527&z=15&iwloc=C">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Grand+Canyon+&m=text">photos</a>, <a href="http://www.nps.gov/grca">info</a>]<br />10.1 Helicopter tour [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Grand+Canyon+National+Park+airport,+arizona&sll=36.058259,-112.125607&sspn=0.023834,0.0527&ie=UTF8&hq=&hnear=Grand+Canyon+National+Park+Airport,+Grand+Canyon,+Coconino,+Arizona+86023&ll=35.959077,-112.133589&spn=0.005966,0.013175&z=17&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Grand+Canyon+helicopter+tour&m=text">photos</a>, <a href="http://www.grandcanyon.com/grandcanyonhelicoptertours.html">info</a>]<br />11. Peach Springs - Hualapai Lodge [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Peach+Springs,+arizona&sll=35.219819,-114.044952&sspn=0.77074,1.686401&ie=UTF8&hq=&hnear=Peach+Springs,+Mohave,+Arizona&ll=35.528315,-113.425512&spn=0.049734,0.1054&z=14">map</a>, photos, <a href="http://www.tripadvisor.com/Hotel_Review-g31306-d74066-Reviews-Hualapai_Lodge-Peach_Springs_Arizona.html">info</a>] </div><div><br /><strong>Day 3,4<br /></strong>11.1 Havasu Falls 3 day Hike [map, <a href="http://www.flickr.com/search/?w=all&q=Havasu+falls&m=text">photos</a>, <a href="http://www.fsguides.com/kayaking-havasu.htm">info</a>]<br /></div><div></div><div><strong>Day 5<br /></strong>Return from Grand Canyon to Las Vegas<br />Hoover Dam [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=hoover+dam&sll=35.529153,-113.425512&sspn=0.047987,0.1054&ie=UTF8&hq=Hoover+Dam&hnear=Hoover+Dam,+Las+Vegas,+NV&ll=36.016199,-114.737005&spn=0.047694,0.1054&z=14&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Hoover+Dam&m=text">photos</a>, info]<br />12. Las Vegas - Planet Hollywood [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Las+Vegas+-+Planet+Hollywood&sll=36.016199,-114.737005&sspn=0.047694,0.1054&ie=UTF8&hq=Planet+Hollywood&hnear=Las+Vegas,+NV&ll=36.110386,-115.168262&spn=0.023819,0.0527&z=15&iwloc=B">map</a>, photos, info]<br />12.1 Cirque du Soleil - KA and "O" [map, photos, <a href="http://www.cirquedusoleil.com/en/shows/ka/default.aspx">info</a>]<br /></div><div><strong>Day 6 </strong><br />13. Beatty - Lunch [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Beatty,+california&sll=36.10997,-115.168262&sspn=0.024686,0.0527&ie=UTF8&hq=&hnear=Beatty,+Nye,+Nevada&ll=36.908557,-116.759226&spn=1.563648,3.372803&z=9">map</a>, photos, info]<br />14. Death Valley - [map, <a href="http://www.flickr.com/search/?w=all&q=Death+Valley&m=text">photos</a>, info]<br />14.1 Titus Canyon [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=titus+canyon,+death+valley,+california&sll=36.75704,-116.980362&sspn=0.39169,0.843201&ie=UTF8&hq=&hnear=Titus+Canyon,+Inyo,+California&z=10&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Titus+Canyon+Death+Valley&m=text">photos</a>, <a href="http://www.desertusa.com/mag99/may/stories/titus.html">info</a>]<br />14.2 North Crater [map, <a href="http://www.flickr.com/search/?w=all&q=crater+Death+Valley&m=text">photos</a>, info]<br />17. Bishop [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=bishop,+california&sll=36.461606,-116.864319&sspn=0.393193,0.843201&ie=UTF8&hq=&hnear=Bishop,+Inyo,+California&ll=37.3898,-118.383179&spn=0.388435,0.843201&z=11">map</a>, photos, info]<br /></div><div></div><div><strong>Day 7<br /></strong>18. Mono Lake [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=mono+lake+south+tufa,+california&sll=38.012832,-118.976152&sspn=0.385184,0.843201&g=mono+lake,+california&ie=UTF8&hq=mono+lake+south+tufa,&hnear=California&z=11">map</a>, <a href="http://www.flickr.com/search/?w=all&q=mono+lake&m=text">photos</a>, <a href="http://www.monolake.org/">info</a>]<br />21. Jackson [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=jackson,+california&sll=38.012832,-118.976152&sspn=0.385184,0.843201&ie=UTF8&hq=&hnear=Jackson,+Amador,+California&z=14">map</a>, photos, info]<br />22. Yosemite - Evergreen [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=evergreen,+yosemite,+california&sll=38.348802,-120.774102&sspn=0.047927,0.1054&g=jackson,+california&ie=UTF8&hq=evergreen,&hnear=Yosemite+National+Park,+Wawona,+CA+95389&ll=37.750969,-119.552236&spn=0.023311,0.0527&z=15&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Yosemite+-+Evergreen+lodge&m=text">photos</a>, <a href="http://www.evergreenlodge.com/">info</a>]<br /></div><div><strong>Day 8 </strong><br />22.1 Evergreen Yosemite tour [map, photos, info]<br /></div><div></div><div><strong>Day 9<br /></strong>23. Old Sacramento [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=old+sacramento,+california&sll=37.750969,-119.552236&sspn=0.023311,0.0527&ie=UTF8&hq=&hnear=Old+Sacramento,+Sacramento,+California&ll=38.573388,-121.510592&spn=0.002986,0.006588&z=18&iwloc=A">map</a>, <a href="http://www.flickr.com/search/?w=all&q=old+sacramento&m=text">photos</a>, info]<br />24. Point Reyes [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Point+Reyes,+california&sll=38.573388,-121.510592&sspn=0.002986,0.006588&ie=UTF8&hq=&hnear=Point+Reyes,+Inverness,+Marin,+California+94937&z=15">map</a>, <a href="http://www.flickr.com/search/?w=all&q=Point+Reyes+california&m=text">photos</a>, <a href="http://www.nps.gov/pore/index.htm">info</a>]<br /></div><div><strong>Day 10 and 11 </strong><br />25. San Francisco [<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=san+francisco,+california&sll=38.001318,-122.996942&sspn=0.024078,0.0527&ie=UTF8&hq=&hnear=San+Francisco,+California&z=12&iwloc=A">map</a>, photos, info] </div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6537549.post-49490808494011914972009-10-16T12:07:00.004+01:002009-10-16T12:19:07.375+01:00"Como gerir projectos impossíveis com agilidade" - talk no 1º Ignite Portugal<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5EWB883v9tJ_lD1_xGp2obYYIg-zlNzwZZiRAwTpOKBwdEVW-5R9U-HLkY_8JN0mJOowBz6tMYuTcOObOoYlF0X08X3jqRT8fwgu_5FfDhyphenhyphenNAsyjNPgY4Xk3ZD2u_Su2Dla6J/s1600-h/CartazIGNITEPortugal.jpg"><img style="MARGIN: 0px 10px 10px 0px; WIDTH: 320px; FLOAT: left; HEIGHT: 319px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5393154840678244786" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5EWB883v9tJ_lD1_xGp2obYYIg-zlNzwZZiRAwTpOKBwdEVW-5R9U-HLkY_8JN0mJOowBz6tMYuTcOObOoYlF0X08X3jqRT8fwgu_5FfDhyphenhyphenNAsyjNPgY4Xk3ZD2u_Su2Dla6J/s400/CartazIGNITEPortugal.jpg" /></a><br /><br />Ontem, no 1º Ignite Portugal, fiz uma apresentação sobre as metodologias ágeis.<br /><br /><br /><br /><br /><br />Ignite Portugal é um conjunto de eventos abertos à participação de todos que giram em torno de apresentações sobre temas como inovação, criatividade, empreendedorismo ou tecnologia, em que os apresentadores têm apenas 5 minutos para falar, com 20 slides que rodam automaticamente a cada 15 segundos.<br /><p>A apresentação está no <a href="http://www.slideshare.net/tiagonmas/como-gerir-projectos-impossveis-com-agilidade">slideshare</a>.</p><br /><br /><p></p><p>Mais detalhes <a href="http://igniteportugal.blogspot.com/">aqui</a></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-2213855833220168142009-09-09T10:19:00.002+01:002009-09-09T10:55:47.985+01:00BitmapEffects with WriteableBitmap<p>Folowing <a href="http://tiagonmas.blogspot.com/2009/09/sample-writablebitmap.html" target="_blank">this post</a>, here is another set of visual effects applied to a image. The effects are enabled by using the WriteableBitmap class of Silverlight 3.</p><p><a href="http://labs.fullsix.pt/Projects/silverlight/BitmapEffect/" target="_blank">Running Demo</a>. Download of the <a href="http://xamlpt.com/media/p/1026.aspx" target="_blank">source code.</a></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-83754192656049748042009-09-07T13:21:00.003+01:002009-09-07T13:24:15.057+01:00“The world in 2015” – A world of content<p></p><p>Article writen for the newspaper <a href="http://www.semanarioeconomico.com/" target="_blank">Semanário Económico</a> – outlook - (5 de Setembro de 2009) for the topic "The World in 2015". Article in Portuguese:</p><p>“Daqui a 6 anos estaremos em plena revolução ao nível de conteúdos, desde a produção e distribuição até ao seu consumo. Os conteúdos serão uma ‘<i>commodity’</i>, forçada pela sua desmaterialização e facilidade de acesso através das redes digitais, e a experiência de consumo será a componente fundamental. </p><p>A produção de conteúdos irá mudar. Aliás, está progressivamente a deixar de estar exclusivamente nas mãos das grandes editoras ou produtoras. Cada vez mais, qualquer pessoa pode ser o autor de um livro, de um filme ou de uma estação de rádio e facilmente disponibilizar esse conteúdo a quem quer que esteja interessado. As melhores bandas, os melhores escritores e produtores serão escolhidos directamente por nós, sem a interferência de grandes campanhas de marketing. </p><p><i>Mas o consumo de conteúdos também está a mudar</i>. Estamos num ponto de inflexão onde deixaremos de consumir o que outros decidem para passarmos a ser nós próprios a decidir que conteúdos vamos consumir, quando e onde. Eu serei o editor da minha revista, as rádios tocarão a música que eu gosto, as televisões emitirão os meus programas favoritos e os filmes, mesmo ainda não os tendo visto, serão os que têm a maior probabilidade de eu gostar.</p><p>Já começamos a assistir a um movimento de convergência digital onde os formatos físicos estão a ser substituídos pelos digitais. As velhas fotografias são substituídas pelos álbuns no <a href="http://www.flickr.com/" target="_blank">Flickr</a>, os vinis e cd’s pelos mp3 no <a href="http://www.apple.com/br/itunes/" target="_blank">iTunes</a>, os filmes de 8mm e vhs de família pelos filmes no <a href="http://www.youtube.com/" target="_blank">Youtube</a>, já para não falar das tradicionais cartas que foram substituídas pelo email e que em 2015 serão substituídos por aplicações mais interactivas como o <a href="http://wave.google.com/" target="_blank">Google Wave</a>. <b>Em 2015 haverá muito poucos formatos físicos</b>. Não é a disquete, que essa já nem os jovens actuais sabem o que é. Refiro-me aos cds, dvds e eventualmente os livros tal como os conhecemos. Tudo passará a estar disponível na rede e através dela, a qualquer hora, a partir de qualquer sítio e em qualquer dispositivo. Porque razão é que eu tenho de pagar novamente os direitos de autor de um CD musical se o formato físico comprado se estragar e eu pretender um novo? Qual é a loja que recebe o meu CD antigo e me dá um novo cobrando apenas o custo do formato físico? A importância passa para os direitos de autor e deixa de ser a distribuição e produção.</p><p>Será possível assistir a um filme ao mesmo tempo que os meus amigos, comentado cada uma das cenas à medida que elas vão acontecendo estando, no entanto, cada um na sala de sua casa. A proximidade de comunicação vai ser muito maior apesar de estarmos fisicamente distantes. Os dispositivos estarão interligados na disponibilização da melhor experiência de consumo. Poderei estar a assistir a um concerto da minha banda preferida na televisão de casa, e ao ter de me deslocar para o carro a música segue sem interrupções para o meu <i>ipod</i> e passa do mesmo modo para a aparelhagem do carro sem qualquer corte de fluidez musical na troca dos dispositivos emissores.</p><p>Não acontecerá apenas uma mudança tecnológica mas sim industrial, cultural e social. Tal como dizia Charles Darwin, não são as espécies mais fortes ou mais inteligentes que sobrevivem mas sim aquela que tem uma maior capacidade de adaptação. As grandes empresas de <i>media</i> que não demonstrem capacidades de se adaptar desaparecerão do mercado. A batalha contra a troca ilegal de ficheiros na internet será ganha pelos prevaricadores e as empresas passarão a adaptar a sua oferta, não ao conteúdo em si, mas sim aos serviços e experiências dados para além do conteúdo. Todos temos a noção que, nos cinemas, o que dá lucro são as pipocas e não o filme em si! </p><p>Assim sendo, o grande dilema em 2015 será como é que os produtores de conteúdos irão ter dividendos para continuar a produzir. Como é que se evita sermos inundados por obras de amadores e não chegarmos a ver obras de profissionais pois não conseguem obter o sustento necessário? A experiência de consumo é a resposta. Para a indústria musical serão os concertos a dar essa experiência e a gerar retorno. Mais complicado será para os escritores ou produtores de filmes que terão que utilizar meios interactivos muito mais complexos. Mas isso é outra história…”</p><p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE1sz5HAPVHGAUnfca7bt2TrwUny3pl5IUAwyrBUEh5b3_G92RnKqjn6xaHwur09DZMAOfqCJId5oQsL9OA9bkT-EFqmSu6c6BQIQj8a9of7frdy8BLrhP143tmMg4wUwav0tp/s1600-h/SemanarioEconomico_outlook_05.09.2009.mundo2015_tas%5B3%5D.jpg"><img style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="SemanarioEconomico_outlook_05.09.2009.mundo2015_tas" border="0" alt="SemanarioEconomico_outlook_05.09.2009.mundo2015_tas" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGMvl5kibPjdaVNNRJJ9oS-t5FhrPNmn1knC5_kpcsNh6kt2bw01Twn1w83qCK-oAjnkR1KTP3Cc69ezPpzpbp5ff4uwLNIZMDX_kGXNFMoTP3QMfvSDcswn0OXin7t2aL2zHL/?imgmax=800" width="500" height="399" /></a></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-40058593618010680222009-09-02T16:25:00.003+01:002009-09-02T16:30:45.558+01:00Sample WritableBitmap<p>the image to a random color. The image is being redraw regularly so it shows a notion of “rain”. Here is the initialization:</p><div style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:27a133d9-b2f9-4b7c-8b39-2ec5e8485642" class="wlWriterEditableSmartContent"><pre style="BACKGROUND-: auto;color:#ffffff;" ><span style="color:#000000;"> </span><span style="color:#0000ff;">private</span><span style="color:#000000;"> </span><span style="color:#0000ff;">void</span><span style="color:#000000;"> OnLoaded(</span><span style="color:#0000ff;">object</span><span style="color:#000000;"> sender, RoutedEventArgs routedEventArgs)<br /> {<br /><br /> Screen.Width </span><span style="color:#000000;">=</span><span style="color:#000000;"> ScreenWidth;<br /> Screen.Height </span><span style="color:#000000;">=</span><span style="color:#000000;"> ScreenHeight;<br /><br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">Criaco do object writablebitmap com o tamanho indicado.</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> bitmap </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000ff;">new</span><span style="color:#000000;"> WriteableBitmap(ScreenWidth, ScreenHeight);<br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">Indicao de qual o elemento que ira fazer a visualizao do writable bitmap.</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> Screen.Source </span><span style="color:#000000;">=</span><span style="color:#000000;"> bitmap;<br /><br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">registar o evento para fazer o render regular</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> CompositionTarget.Rendering </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#0000ff;">new</span><span style="color:#000000;"> EventHandler(CompositionTarget_Rendering);<br /> }</span></pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div><br /><br /><p>After initilization and on each frame we redraw the pixels randomly:</p><div style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:b0b6698f-e98c-4ffe-bc36-4df5900846d9" class="wlWriterEditableSmartContent"><pre style="BACKGROUND-: auto;color:#ffffff;" ><span style="color:#0000ff;">void</span><span style="color:#000000;"> CompositionTarget_Rendering(</span><span style="color:#0000ff;">object</span><span style="color:#000000;"> sender, EventArgs e)<br /> {<br /> var index </span><span style="color:#000000;">=</span><span style="color:#000000;"> MaxScreen;<br /><br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">Pintar cada pixel</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> </span><span style="color:#0000ff;">while</span><span style="color:#000000;"> (</span><span style="color:#000000;">--</span><span style="color:#000000;">index </span><span style="color:#000000;">></span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#800080;">1</span><span style="color:#000000;">)<br /> {<br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">cor aleatoria para cada pixel</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> var color </span><span style="color:#000000;">=</span><span style="color:#000000;"> System.Convert.ToInt32(rnd.Next(</span><span style="color:#800080;">0xffffff</span><span style="color:#000000;">));<br /> bitmap.Pixels[index] </span><span style="color:#000000;">=</span><span style="color:#000000;"> color </span><span style="color:#000000;">></span><span style="color:#000000;"> </span><span style="color:#800080;">0xffffff</span><span style="color:#000000;"> </span><span style="color:#000000;">?</span><span style="color:#000000;"> </span><span style="color:#800080;">0xffffff</span><span style="color:#000000;"> : color;<br /> }<br /><br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">força o bitmap a redesenhar</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> bitmap.Invalidate();<br /> }</span></pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div><br /><br /><p>Regarding the XAML we use an image of a TV to give a more realistic effect:</p><br /><br /><div style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:1ca3f87c-de31-472e-bf4a-3317c871480d" class="wlWriterEditableSmartContent"><pre style="BACKGROUND-: auto;color:#ffffff;" ><span style="color:#000000;"> </span><span style="color:#0000ff;"><</span><span style="color:#800000;">Grid </span><span style="color:#ff0000;">x:Name</span><span style="color:#0000ff;">="LayoutRoot"</span><span style="color:#ff0000;"> Background</span><span style="color:#0000ff;">="#FFFFFFFF"</span><span style="color:#0000ff;">></span><span style="color:#000000;"><br /> </span><span style="color:#0000ff;"><</span><span style="color:#800000;">Image </span><span style="color:#ff0000;">x:Name</span><span style="color:#0000ff;">="tv"</span><span style="color:#ff0000;"> Source</span><span style="color:#0000ff;">="tv.jpg"</span><span style="color:#ff0000;"> Margin</span><span style="color:#0000ff;">="68,29.807,72,53.193"</span><span style="color:#ff0000;"> d:LayoutOverrides</span><span style="color:#0000ff;">="Width, Height"</span><span style="color:#0000ff;">/></span><span style="color:#000000;"><br /> </span><span style="color:#0000ff;"><</span><span style="color:#800000;">Image </span><span style="color:#ff0000;">x:Name</span><span style="color:#0000ff;">="Screen"</span><span style="color:#ff0000;"> OpacityMask</span><span style="color:#0000ff;">="</span><span style="color:#808000;">{x:Null}</span><span style="color:#0000ff;">"</span><span style="color:#ff0000;"> Margin</span><span style="color:#0000ff;">="99,57,100,0"</span><span style="color:#ff0000;"> Opacity</span><span style="color:#0000ff;">="1"</span><span style="color:#ff0000;"> VerticalAlignment</span><span style="color:#0000ff;">="Top"</span><span style="color:#ff0000;"> Height</span><span style="color:#0000ff;">="216"</span><span style="color:#ff0000;"> Width</span><span style="color:#0000ff;">="390"</span><span style="color:#0000ff;">/></span><span style="color:#000000;"><br /> </span><span style="color:#0000ff;"></</span><span style="color:#800000;">Grid</span><span style="color:#0000ff;">></span></pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div><br /><br /><p>The result is: </p><br /><br /><p><a href="file:///C:/Users/tas/AppData/Local/Temp/WindowsLiveWriter1286139640/supfiles19DBB3BC/WritableBitmapChuva_27E6E2F5[2].png"><img style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEDSHxJpuab0ZtIlKZLfqP7KHPJuS3X58Vhyphenhyphen2q5NBRimdQVVdstMLvnQhZaJTudWBOme9L5BEarYfTvunlEflTSYWPwo1PG3uICSwRImnxLwD6gfYR5buWbAhOdRJ1YCLBxGDK/?imgmax=800" width="244" height="196" /></a></p><br /><p>You can download the <a href="http://xamlpt.com/media/p/1002.aspx">source code here</a> and the <a href="http://labs.fullsix.pt/projects/silverlight/TVRain/TVRainTestPage.html">demo can be seen here</a>.<br /></p><p>We can also play with the mouse movement and make it create interferences on the TV. We need to capture the mouse movement event and act accordingly:</p><div style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:7f1f0f46-d70e-4200-85b3-e41b0e2e0f96" class="wlWriterEditableSmartContent"><pre style="BACKGROUND-: auto;color:#ffffff;" ><span style="color:#008000;">//</span><span style="color:#008000;">Repaint the screen regularly</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> </span><span style="color:#0000ff;">void</span><span style="color:#000000;"> CompositionTarget_Rendering(</span><span style="color:#0000ff;">object</span><span style="color:#000000;"> sender, EventArgs e)<br /> {<br /> var index </span><span style="color:#000000;">=</span><span style="color:#000000;"> MaxScreen;<br /><br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">Paint each bitmap pixel.</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> </span><span style="color:#0000ff;">while</span><span style="color:#000000;"> (</span><span style="color:#000000;">--</span><span style="color:#000000;">index </span><span style="color:#000000;">></span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#800080;">1</span><span style="color:#000000;">)<br /> {<br /> </span><span style="color:#0000ff;">if</span><span style="color:#000000;"> (index </span><span style="color:#000000;">%</span><span style="color:#000000;"> (mouseLastPos.X</span><span style="color:#000000;">/</span><span style="color:#800080;">2</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> mouseLastPos.Y</span><span style="color:#000000;">/</span><span style="color:#800080;">2</span><span style="color:#000000;">)</span><span style="color:#000000;">+</span><span style="color:#000000;">rnd.Next(</span><span style="color:#800080;">20</span><span style="color:#000000;">) </span><span style="color:#000000;"><</span><span style="color:#000000;"> </span><span style="color:#800080;">15</span><span style="color:#000000;">)<br /> bitmap.Pixels[index] </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">0xffffff</span><span style="color:#000000;">;<br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">bitmap.Pixels[index] = Convert.ToInt32(mouseLastPos.X * mouseLastPos.Y+5000);</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> </span><span style="color:#0000ff;">else</span><span style="color:#000000;"><br /> {<br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">Random color for each pixel.</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> var color </span><span style="color:#000000;">=</span><span style="color:#000000;"> System.Convert.ToInt32(rnd.Next(</span><span style="color:#800080;">0xffffff</span><span style="color:#000000;">));<br /> bitmap.Pixels[index] </span><span style="color:#000000;">=</span><span style="color:#000000;"> color </span><span style="color:#000000;">></span><span style="color:#000000;"> </span><span style="color:#800080;">0xffffff</span><span style="color:#000000;"> </span><span style="color:#000000;">?</span><span style="color:#000000;"> </span><span style="color:#800080;">0xffffff</span><span style="color:#000000;"> : color;<br /> }<br /> }<br /> <br /> </span><span style="color:#008000;">//</span><span style="color:#008000;">force bitmap repaint</span><span style="color:#008000;"><br /></span><span style="color:#000000;"> bitmap.Invalidate();<br /> }</span></pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div><br /><p>Final result can be seen <a href="http://labs.fullsix.pt/projects/silverlight/TVRain2/TVRainTestPage.html" target="_blank">here</a>.</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-6968954968892635082009-09-02T14:21:00.002+01:002009-09-02T16:30:11.882+01:00Microsoft Surface demos<p>I recently developed a series of tests and demos os <a href="http://en.wikipedia.org/wiki/Microsoft_Surface">Microsoft Surface</a> to some clients and journalists. As a result there was some magazine coverage: <a href="http://www.flickr.com/photos/fullsixpt/3595009824/" target="_blank">Pc Guia</a>, Bit (<a href="http://www.flickr.com/photos/fullsixpt/3595009124/">pg1</a> e <a href="http://www.flickr.com/photos/fullsixpt/3595009664/">pg2</a>) and also a TV show "<a href="http://www.youtube.com/watch?v=XaYDgSOezfE">episódio 4 da Exame Informática TV</a>" that was recorded at Fullsix and brodcasted by Sic Notícias.</p><br /><p>The prototypes that I developed can be seen <a href="http://www.youtube.com/watch?v=uzpIlDIVShA">here</a>. One of these prototypes was also showed at the keynote of <a href="http://www.youtube.com/watch?v=sbMWkdox_CM">Microsoft DevDays 09</a>.</p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-16157715566493646252009-03-18T15:11:00.004+00:002009-03-18T15:17:25.628+00:00XAML PT community lauchedToday we lauch a new community that aims at Microsoft's Presentation Technologies: <a href="http://xamlpt.com/">XAML PT</a>. Namely the development of Silverlight, WPF and Surface applications that use XAML. The community is intended for Portuguese speaking people and will be formally released at the same time as the Keynote of <a href="http://live.visitmix.com/">MIX09</a> this afternoon (GMT).<br /><br />I would like to thank <a href="http://www.fullsix.pt">Fullsix Portugal</a> for sponsoring this community.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-1843068275793720062009-02-21T15:56:00.002+00:002009-02-23T10:55:53.859+00:00Web site frontend performance<p>This week I presented at <a href="http://www.devdays09.com/">DevDays09</a> the session <a href="http://www.devdays09.com/DevdaysDetalhe-MX/OptimizacaodePerformancedeWebSites?ChID=5BB241AA-D836-4811-8676-725921F849CA&CID=9E03A6F6-439B-45AE-B880-00143856E35B">WUX303 – Optimização de Performance de Web Sites</a>. This session had great feedback. It was ranked number 7 of the overall 75 sessions of the event.</p> <p>It was an overview of the book “<a href="http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309">High Performance Web Sites</a>” by <a href="http://www.stevesouders.com/">Steve Souders</a>. I presented the 14 rules and showed some demos and tools that help on optimizing your website.</p> <p><img height="141" src="http://ecx.images-amazon.com/images/I/518a1LAmqqL._SL500_AA240_.jpg" width="141" /> </p> <p>Here are some of the tools I used:</p> <ul> <li><a href="http://developer.yahoo.com/yslow/">YSlow</a> </li> <li><a href="http://www.alphaworks.ibm.com/tech/pagedetailer">IBM Page Detailer</a> </li> <li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=119f3477-dced-41e3-a0e7-d8b5cae893a3&displaylang=en">Microsoft Visual Round Trip Analyser</a> </li> <li><a href="http://stevesouders.com/hammerhead">Hammerhead</a> </li> <li><a href="http://stevesouders.com/cuzillion/">Cuzzilion</a> </li> <li><a href="http://performance.webpagetest.org:8080/">Performance Webpage Test (Online)</a> </li> <li><a href="http://www.fiddler2.com/fiddler2/">Fiddler2</a> </li> </ul> <p>Here are the <a href="http://www.slideshare.net/tiagonmas/optimizao-de-performance-de-web-sites">slides of the presentation</a> and the <a href="http://www.fullsix.pt/tas/wux303/index.html">demos</a>.</p>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-6537549.post-3990901023410983012009-02-15T17:09:00.003+00:002009-02-20T10:42:22.177+00:00Changing sound frequency for game<p>Hi! <br />I wanted to be able to change a sound frequency according to the strength applied to a element inside a game. Based on <a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=322115">this thread</a> I changed the sample to allow to change at real time the frequency of the sound being played. <br /></p> <p>The code that does the thing is:</p> <div> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 1:</span> BufferDescription d = <span style="color: #0000ff">new</span> BufferDescription();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 2:</span> d.ControlFrequency = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 3:</span> sound = <span style="color: #0000ff">new</span> SecondaryBuffer(<span style="color: #006080">"C:\\Windows\\Media\\ding.wav"</span>, d, applicationDevice);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 4:</span> sound.Frequency = 0; <span style="color: #008000">//The default frequency</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 5:</span> sound.Play(0, BufferPlayFlags.Looping);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 6:</span> <span style="color: #0000ff">if</span> you want to change the frequency:</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 7:</span> sound.Frequency = <some <span style="color: #0000ff">value</span>>;</pre><br /> </div><br /></div><br /><br /><p>Here is the complete code:</p><br /><br /><p>(you need to add a reference to Microsoft.DirectX.DirectSound)<br /> <br /></p><br /><br /><p><br /> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"><br /> <div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 1:</span> <span style="color: #0000ff">using</span> System;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 2:</span> <span style="color: #0000ff">using</span> System.IO;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 3:</span> <span style="color: #0000ff">using</span> System.Drawing;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 4:</span> <span style="color: #0000ff">using</span> System.Collections;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 5:</span> <span style="color: #0000ff">using</span> System.ComponentModel;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 6:</span> <span style="color: #0000ff">using</span> System.Windows.Forms;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 7:</span> <span style="color: #0000ff">using</span> System.Data;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 8:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 9:</span> <span style="color: #0000ff">using</span> Microsoft.DirectX.DirectSound;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 10:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 11:</span> <span style="color: #0000ff">namespace</span> Noisey</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 12:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 13:</span> <span style="color: #008000">/// <summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 14:</span> <span style="color: #008000">/// Very simple test form</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 15:</span> <span style="color: #008000">/// </summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 16:</span> <span style="color: #0000ff">public</span> <span style="color: #0000ff">class</span> MainForm : System.Windows.Forms.Form</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 17:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 18:</span> <span style="color: #0000ff">private</span> System.Windows.Forms.Button btnPlay;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 19:</span> <span style="color: #008000">/// <summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 20:</span> <span style="color: #008000">/// Required designer variable.</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 21:</span> <span style="color: #008000">/// </summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 22:</span> <span style="color: #0000ff">private</span> System.ComponentModel.Container components = <span style="color: #0000ff">null</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 23:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 24:</span> Device applicationDevice;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 25:</span> SecondaryBuffer sound;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 26:</span> <span style="color: #0000ff">private</span> BufferDescription d;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 27:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 28:</span> <span style="color: #0000ff">private</span> TrackBar trackBar1;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 29:</span> <span style="color: #0000ff">private</span> TextBox txtFreq;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 30:</span> <span style="color: #0000ff">private</span> Label label1;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 31:</span> <span style="color: #0000ff">private</span> Label label2;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 32:</span> <span style="color: #0000ff">private</span> Button btnStop;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 33:</span> <span style="color: #0000ff">private</span> OpenFileDialog openFileDialog1;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 34:</span> <span style="color: #0000ff">private</span> Button btnNewFile;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 35:</span> <span style="color: #0000ff">private</span> Label lblFile;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 36:</span> <span style="color: #0000ff">private</span> Label label3;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 37:</span> </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 38:</span> </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 39:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 40:</span> <span style="color: #0000ff">public</span> MainForm()</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 41:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 42:</span> <span style="color: #008000">//</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 43:</span> <span style="color: #008000">// Required for Windows Form Designer support</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 44:</span> <span style="color: #008000">//</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 45:</span> InitializeComponent();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 46:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 47:</span> <span style="color: #008000">//</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 48:</span> <span style="color: #008000">// Add any constructor code after InitializeComponent call</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 49:</span> <span style="color: #008000">//</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 50:</span> applicationDevice = <span style="color: #0000ff">new</span> Device();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 51:</span> applicationDevice.SetCooperativeLevel(<span style="color: #0000ff">this</span>, CooperativeLevel.Normal);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 52:</span> </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 53:</span> d = <span style="color: #0000ff">new</span> BufferDescription();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 54:</span> <span style="color: #008000">// Set descriptor’s flags</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 55:</span> d.ControlPan = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 56:</span> d.ControlVolume = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 57:</span> d.ControlFrequency = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 58:</span> d.ControlEffects = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 59:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 60:</span> <span style="color: #008000">//Load a default file</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 61:</span> sound = <span style="color: #0000ff">new</span> SecondaryBuffer(<span style="color: #006080">"C:\\Windows\\Media\\ding.wav"</span>, d, applicationDevice);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 62:</span> sound.Frequency = 0; <span style="color: #008000">//The default frequency</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 63:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 64:</span> <span style="color: #008000">//Disable stop button because it's not playing yet.</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 65:</span> btnStop.Enabled = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 66:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 67:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 68:</span> <span style="color: #008000">/// <summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 69:</span> <span style="color: #008000">/// Clean up any resources being used.</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 70:</span> <span style="color: #008000">/// </summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 71:</span> <span style="color: #0000ff">protected</span> <span style="color: #0000ff">override</span> <span style="color: #0000ff">void</span> Dispose(<span style="color: #0000ff">bool</span> disposing)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 72:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 73:</span> <span style="color: #0000ff">if</span> (disposing)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 74:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 75:</span> <span style="color: #0000ff">if</span> (components != <span style="color: #0000ff">null</span>)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 76:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 77:</span> components.Dispose();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 78:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 79:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 80:</span> <span style="color: #0000ff">base</span>.Dispose(disposing);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 81:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 82:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 83:</span> <span style="color: #cc6633">#region</span> Windows Form Designer generated code</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 84:</span> <span style="color: #008000">/// <summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 85:</span> <span style="color: #008000">/// Required method for Designer support - do not modify</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 86:</span> <span style="color: #008000">/// the contents of this method with the code editor.</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 87:</span> <span style="color: #008000">/// </summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 88:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> InitializeComponent()</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 89:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 90:</span> <span style="color: #0000ff">this</span>.btnPlay = <span style="color: #0000ff">new</span> System.Windows.Forms.Button();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 91:</span> <span style="color: #0000ff">this</span>.trackBar1 = <span style="color: #0000ff">new</span> System.Windows.Forms.TrackBar();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 92:</span> <span style="color: #0000ff">this</span>.txtFreq = <span style="color: #0000ff">new</span> System.Windows.Forms.TextBox();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 93:</span> <span style="color: #0000ff">this</span>.label1 = <span style="color: #0000ff">new</span> System.Windows.Forms.Label();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 94:</span> <span style="color: #0000ff">this</span>.label2 = <span style="color: #0000ff">new</span> System.Windows.Forms.Label();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 95:</span> <span style="color: #0000ff">this</span>.btnStop = <span style="color: #0000ff">new</span> System.Windows.Forms.Button();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 96:</span> <span style="color: #0000ff">this</span>.openFileDialog1 = <span style="color: #0000ff">new</span> System.Windows.Forms.OpenFileDialog();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 97:</span> <span style="color: #0000ff">this</span>.btnNewFile = <span style="color: #0000ff">new</span> System.Windows.Forms.Button();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 98:</span> <span style="color: #0000ff">this</span>.lblFile = <span style="color: #0000ff">new</span> System.Windows.Forms.Label();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 99:</span> <span style="color: #0000ff">this</span>.label3 = <span style="color: #0000ff">new</span> System.Windows.Forms.Label();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 100:</span> ((System.ComponentModel.ISupportInitialize)(<span style="color: #0000ff">this</span>.trackBar1)).BeginInit();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 101:</span> <span style="color: #0000ff">this</span>.SuspendLayout();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 102:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 103:</span> <span style="color: #008000">// btnPlay</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 104:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 105:</span> <span style="color: #0000ff">this</span>.btnPlay.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(18, 64);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 106:</span> <span style="color: #0000ff">this</span>.btnPlay.Name = <span style="color: #006080">"btnPlay"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 107:</span> <span style="color: #0000ff">this</span>.btnPlay.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(87, 20);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 108:</span> <span style="color: #0000ff">this</span>.btnPlay.TabIndex = 0;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 109:</span> <span style="color: #0000ff">this</span>.btnPlay.Text = <span style="color: #006080">"Play Sound"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 110:</span> <span style="color: #0000ff">this</span>.btnPlay.Click += <span style="color: #0000ff">new</span> System.EventHandler(<span style="color: #0000ff">this</span>.btnPlay_Click);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 111:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 112:</span> <span style="color: #008000">// trackBar1</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 113:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 114:</span> <span style="color: #0000ff">this</span>.trackBar1.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(37, 124);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 115:</span> <span style="color: #0000ff">this</span>.trackBar1.Maximum = 50000;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 116:</span> <span style="color: #0000ff">this</span>.trackBar1.Minimum = 1000;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 117:</span> <span style="color: #0000ff">this</span>.trackBar1.Name = <span style="color: #006080">"trackBar1"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 118:</span> <span style="color: #0000ff">this</span>.trackBar1.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(190, 45);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 119:</span> <span style="color: #0000ff">this</span>.trackBar1.TabIndex = 1;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 120:</span> <span style="color: #0000ff">this</span>.trackBar1.Value = 30000;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 121:</span> <span style="color: #0000ff">this</span>.trackBar1.ValueChanged += <span style="color: #0000ff">new</span> System.EventHandler(<span style="color: #0000ff">this</span>.trackBar1_ValueChanged);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 122:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 123:</span> <span style="color: #008000">// txtFreq</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 124:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 125:</span> <span style="color: #0000ff">this</span>.txtFreq.Enabled = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 126:</span> <span style="color: #0000ff">this</span>.txtFreq.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(43, 185);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 127:</span> <span style="color: #0000ff">this</span>.txtFreq.Name = <span style="color: #006080">"txtFreq"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 128:</span> <span style="color: #0000ff">this</span>.txtFreq.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(100, 20);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 129:</span> <span style="color: #0000ff">this</span>.txtFreq.TabIndex = 2;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 130:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 131:</span> <span style="color: #008000">// label1</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 132:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 133:</span> <span style="color: #0000ff">this</span>.label1.AutoSize = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 134:</span> <span style="color: #0000ff">this</span>.label1.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(40, 108);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 135:</span> <span style="color: #0000ff">this</span>.label1.Name = <span style="color: #006080">"label1"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 136:</span> <span style="color: #0000ff">this</span>.label1.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(100, 13);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 137:</span> <span style="color: #0000ff">this</span>.label1.TabIndex = 3;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 138:</span> <span style="color: #0000ff">this</span>.label1.Text = <span style="color: #006080">"Frequency Change:"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 139:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 140:</span> <span style="color: #008000">// label2</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 141:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 142:</span> <span style="color: #0000ff">this</span>.label2.AutoSize = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 143:</span> <span style="color: #0000ff">this</span>.label2.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(43, 166);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 144:</span> <span style="color: #0000ff">this</span>.label2.Name = <span style="color: #006080">"label2"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 145:</span> <span style="color: #0000ff">this</span>.label2.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(97, 13);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 146:</span> <span style="color: #0000ff">this</span>.label2.TabIndex = 4;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 147:</span> <span style="color: #0000ff">this</span>.label2.Text = <span style="color: #006080">"Current Frequency:"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 148:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 149:</span> <span style="color: #008000">// btnStop</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 150:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 151:</span> <span style="color: #0000ff">this</span>.btnStop.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(111, 61);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 152:</span> <span style="color: #0000ff">this</span>.btnStop.Name = <span style="color: #006080">"btnStop"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 153:</span> <span style="color: #0000ff">this</span>.btnStop.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(88, 21);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 154:</span> <span style="color: #0000ff">this</span>.btnStop.TabIndex = 5;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 155:</span> <span style="color: #0000ff">this</span>.btnStop.Text = <span style="color: #006080">"Stop"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 156:</span> <span style="color: #0000ff">this</span>.btnStop.UseVisualStyleBackColor = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 157:</span> <span style="color: #0000ff">this</span>.btnStop.Click += <span style="color: #0000ff">new</span> System.EventHandler(<span style="color: #0000ff">this</span>.btnStop_Click);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 158:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 159:</span> <span style="color: #008000">// openFileDialog1</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 160:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 161:</span> <span style="color: #0000ff">this</span>.openFileDialog1.FileName = <span style="color: #006080">"openFileDialog1"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 162:</span> <span style="color: #0000ff">this</span>.openFileDialog1.FileOk += <span style="color: #0000ff">new</span> System.ComponentModel.CancelEventHandler(<span style="color: #0000ff">this</span>.openFileDialog1_FileOk);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 163:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 164:</span> <span style="color: #008000">// btnNewFile</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 165:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 166:</span> <span style="color: #0000ff">this</span>.btnNewFile.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(205, 61);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 167:</span> <span style="color: #0000ff">this</span>.btnNewFile.Name = <span style="color: #006080">"btnNewFile"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 168:</span> <span style="color: #0000ff">this</span>.btnNewFile.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(75, 23);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 169:</span> <span style="color: #0000ff">this</span>.btnNewFile.TabIndex = 6;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 170:</span> <span style="color: #0000ff">this</span>.btnNewFile.Text = <span style="color: #006080">"Open"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 171:</span> <span style="color: #0000ff">this</span>.btnNewFile.UseVisualStyleBackColor = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 172:</span> <span style="color: #0000ff">this</span>.btnNewFile.Click += <span style="color: #0000ff">new</span> System.EventHandler(<span style="color: #0000ff">this</span>.btnNewFile_Click);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 173:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 174:</span> <span style="color: #008000">// lblFile</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 175:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 176:</span> <span style="color: #0000ff">this</span>.lblFile.AutoSize = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 177:</span> <span style="color: #0000ff">this</span>.lblFile.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(23, 30);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 178:</span> <span style="color: #0000ff">this</span>.lblFile.Name = <span style="color: #006080">"lblFile"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 179:</span> <span style="color: #0000ff">this</span>.lblFile.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(148, 13);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 180:</span> <span style="color: #0000ff">this</span>.lblFile.TabIndex = 7;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 181:</span> <span style="color: #0000ff">this</span>.lblFile.Text = <span style="color: #006080">"C:\\Windows\\Media\\ding.wav"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 182:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 183:</span> <span style="color: #008000">// label3</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 184:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 185:</span> <span style="color: #0000ff">this</span>.label3.AutoSize = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 186:</span> <span style="color: #0000ff">this</span>.label3.Location = <span style="color: #0000ff">new</span> System.Drawing.Point(23, 9);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 187:</span> <span style="color: #0000ff">this</span>.label3.Name = <span style="color: #006080">"label3"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 188:</span> <span style="color: #0000ff">this</span>.label3.Size = <span style="color: #0000ff">new</span> System.Drawing.Size(63, 13);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 189:</span> <span style="color: #0000ff">this</span>.label3.TabIndex = 8;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 190:</span> <span style="color: #0000ff">this</span>.label3.Text = <span style="color: #006080">"Current File:"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 191:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 192:</span> <span style="color: #008000">// MainForm</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 193:</span> <span style="color: #008000">// </span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 194:</span> <span style="color: #0000ff">this</span>.AutoScaleBaseSize = <span style="color: #0000ff">new</span> System.Drawing.Size(5, 13);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 195:</span> <span style="color: #0000ff">this</span>.ClientSize = <span style="color: #0000ff">new</span> System.Drawing.Size(292, 260);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 196:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.label3);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 197:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.lblFile);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 198:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.btnNewFile);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 199:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.btnStop);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 200:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.label2);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 201:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.label1);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 202:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.txtFreq);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 203:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.trackBar1);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 204:</span> <span style="color: #0000ff">this</span>.Controls.Add(<span style="color: #0000ff">this</span>.btnPlay);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 205:</span> <span style="color: #0000ff">this</span>.Name = <span style="color: #006080">"MainForm"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 206:</span> <span style="color: #0000ff">this</span>.Text = <span style="color: #006080">"Sound Frequency Changer"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 207:</span> ((System.ComponentModel.ISupportInitialize)(<span style="color: #0000ff">this</span>.trackBar1)).EndInit();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 208:</span> <span style="color: #0000ff">this</span>.ResumeLayout(<span style="color: #0000ff">false</span>);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 209:</span> <span style="color: #0000ff">this</span>.PerformLayout();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 210:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 211:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 212:</span> <span style="color: #cc6633">#endregion</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 213:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 214:</span> <span style="color: #008000">/// <summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 215:</span> <span style="color: #008000">/// The main entry point for the application.</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 216:</span> <span style="color: #008000">/// </summary></span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 217:</span> [STAThread]</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 218:</span> <span style="color: #0000ff">static</span> <span style="color: #0000ff">void</span> Main()</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 219:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 220:</span> Application.Run(<span style="color: #0000ff">new</span> MainForm());</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 221:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 222:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 223:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> btnPlay_Click(<span style="color: #0000ff">object</span> sender, System.EventArgs e)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 224:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 225:</span> </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 226:</span> sound.Play(0, BufferPlayFlags.Looping);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 227:</span> btnPlay.Enabled = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 228:</span> btnStop.Enabled = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 229:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 230:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 231:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> trackBar1_ValueChanged(<span style="color: #0000ff">object</span> sender, EventArgs e)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 232:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 233:</span> txtFreq.Text = trackBar1.Value.ToString();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 234:</span> sound.Frequency = trackBar1.Value;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 235:</span> btnPlay.Enabled = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 236:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 237:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 238:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> btnNewFile_Click(<span style="color: #0000ff">object</span> sender, EventArgs e)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 239:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 240:</span> openFileDialog1.Filter = <span style="color: #006080">"wav files (*.wav)|*.wav|All files (*.*)|*.*"</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 241:</span> openFileDialog1.ShowDialog();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 242:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 243:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 244:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> openFileDialog1_FileOk(<span style="color: #0000ff">object</span> sender, CancelEventArgs e)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 245:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 246:</span> sound.Stop();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 247:</span> btnPlay.Enabled = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 248:</span> btnStop.Enabled = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 249:</span> lblFile.Text = openFileDialog1.FileName;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 250:</span> sound = <span style="color: #0000ff">new</span> SecondaryBuffer(openFileDialog1.FileName, d, applicationDevice);</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 251:</span> sound.Frequency = 0; <span style="color: #008000">//The default frequency</span></pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 252:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 253:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 254:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 255:</span> <span style="color: #0000ff">private</span> <span style="color: #0000ff">void</span> btnStop_Click(<span style="color: #0000ff">object</span> sender, EventArgs e)</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 256:</span> {</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 257:</span> sound.Stop();</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 258:</span> btnStop.Enabled = <span style="color: #0000ff">false</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 259:</span> btnPlay.Enabled = <span style="color: #0000ff">true</span>;</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 260:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 261:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 262:</span> }</pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 263:</span>  </pre><br /><br /> <pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 264:</span>  </pre><br /> </div><br /> </div><br /></p><br /><br /><p><br /> <br />This will allow me to use a beam or phaser sound to create the appearance of strength applied on a element.</p> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-11279301554725527652009-01-19T18:26:00.003+00:002009-01-20T10:59:45.413+00:00Dynamic Loading Expression Media Player Template and passing parameters by code<p>Following my previous post on <a href="http://tiagonmas.blogspot.com/2009/01/using-expression-encoder-2-mediaplayer_5608.html">How to pass parameters to the Expression MediaPlayer component</a> by code, here is a solution that builds upon <a href="http://silverlight.net/learn/learnvideo.aspx?video=65687">this post</a> to Dynamicaly load the Media Player inside your app and pass parameters to it. </p> <p>You can test loading of the player <a href="http://www.fullsix.pt/tas/sbvideo/default.htm">here</a>. The source code can also be downloaded <a href="http://www.fullsix.pt/tas/sbvideo/VideoPlayer.zip">here</a>. </p> <p>The loading and costumization of the parameters is done like this:</p> <pre class="code"><span style="color: green">// Download the Media Player using WebClient<br /></span><span style="color: blue">private void </span>downloadVideoPlayer()<br />{<br /> <span style="color: #2b91af">WebClient </span>downloader = <span style="color: blue">new </span><span style="color: #2b91af">WebClient</span>();<br /> downloader.OpenReadCompleted += <span style="color: blue">new </span><span style="color: #2b91af">OpenReadCompletedEventHandler</span>(onDownloadVideoPlayerCompleted);<br /> downloader.OpenReadAsync(<span style="color: blue">new </span><span style="color: #2b91af">Uri</span>(<span style="color: #a31515">"MediaPlayerTemplate.xap"</span>, <span style="color: #2b91af">UriKind</span>.Relative));<br /> lblLoadPlayer.Text = <span style="color: #a31515">"Downloading Media Player"</span>;<br />}<br /><br /><span style="color: green">// Once the Media Player is downloaded<br /></span><span style="color: blue">private void </span>onDownloadVideoPlayerCompleted(<span style="color: blue">object </span>sender, <span style="color: #2b91af">OpenReadCompletedEventArgs </span>args)<br />{<br /><span style="color: blue"> try<br /> </span>{<br /> <span style="color: blue">string </span>appManifest = <span style="color: blue">new </span><span style="color: #2b91af">StreamReader</span>(<span style="color: #2b91af">Application</span>.GetResourceStream(<span style="color: blue">new </span><span style="color: #2b91af">StreamResourceInfo</span>(args.Result, <span style="color: blue">null</span>), <span style="color: blue">new </span><span style="color: #2b91af">Uri</span>(<span style="color: #a31515">"AppManifest.xaml"</span>,<span style="color: #2b91af">UriKind</span>.Relative)).Stream).ReadToEnd();<br /><br /> <span style="color: #2b91af">XElement </span>deploymentRoot = <span style="color: #2b91af">XDocument</span>.Parse(appManifest).Root; <br /> <span style="color: #2b91af">List</span><<span style="color: #2b91af">XElement</span>> deploymentParts = (<span style="color: blue">from </span>assemblyParts <span style="color: blue">in </span>deploymentRoot.Elements().Elements()<br /> <span style="color: blue">select </span>assemblyParts).ToList(); <br /><br /> <span style="color: #2b91af">Assembly </span>asm = <span style="color: blue">null</span>;<br /> <span style="color: blue">foreach </span>(<span style="color: #2b91af">XElement </span>xElement <span style="color: blue">in </span>deploymentParts)<br /> {<br /> <span style="color: blue">string </span>source = xElement.Attribute(<span style="color: #a31515">"Source"</span>).Value;<br /> <span style="color: #2b91af">AssemblyPart </span>asmPart = <span style="color: blue">new </span><span style="color: #2b91af">AssemblyPart</span>();<br /> <span style="color: #2b91af">StreamResourceInfo </span>streamInfo = <span style="color: #2b91af">Application</span>.GetResourceStream(<span style="color: blue">new </span><span style="color: #2b91af">StreamResourceInfo</span>(args.Result, <span style="color: #a31515">"application/binary"</span>), <span style="color: blue">new </span><span style="color: #2b91af">Uri</span>(source, <span style="color: #2b91af">UriKind</span>.Relative));<br /> <span style="color: blue">if </span>(source == <span style="color: #a31515">"MediaPlayerTemplate.dll"</span>)<br /> {<br /> asm = asmPart.Load(streamInfo.Stream);<br /> }<br /> <span style="color: blue">else </span>asmPart.Load(streamInfo.Stream);<br /> }<br /><br /><br /><br /> MediaPlayerTemplate.<span style="color: #2b91af">Page </span>myPlayer = asm.CreateInstance(<span style="color: #a31515">"MediaPlayerTemplate.Page"</span>) <span style="color: blue">as </span>MediaPlayerTemplate.<span style="color: #2b91af">Page</span>;<br /> <span style="color: #2b91af">Dictionary</span><<span style="color: blue">string</span>,<span style="color: blue">string</span>> dic = <span style="color: blue">new </span><span style="color: #2b91af">Dictionary</span><<span style="color: blue">string</span>, <span style="color: blue">string</span>>();<br /> dic.Add(<span style="color: #a31515">"autoplay"</span>, <span style="color: #a31515">"true"</span>);<br /> dic.Add(<span style="color: #a31515">"enablecaptions"</span>, <span style="color: #a31515">"true"</span>);<br /> dic.Add(<span style="color: #a31515">"muted"</span>, <span style="color: #a31515">"false"</span>);<br /> dic.Add(<span style="color: #a31515">"stretchmode"</span>, <span style="color: #a31515">"0"</span>);<br /> dic.Add(<span style="color: #a31515">"displaytimecode"</span>, <span style="color: #a31515">"false"</span>);<br /> dic.Add(<span style="color: #a31515">"playlist"</span>, <span style="color: #a31515">"<playList><playListItems><playListItem title=\"\" description=\"\" mediaSource=\"silverlight.wmv\" adaptiveStreaming=\"False\" thumbSource=\"\" frameRate=\"23.9760431376968\" width=\"512\" height=\"284\" ><chapters><chapter position=\"11.256\" title=\"MYMARKER01\" /><chapter position=\"20.033\" thumbnailSource=\"silverlight_20.033.jpg\" title=\"Capitulo%201\" /><chapter position=\"45.585\" thumbnailSource=\"silverlight_45.585.jpg\" title=\"Chapter%202\" /><chapter position=\"58.646\" thumbnailSource=\"silverlight_58.646.jpg\" title=\"Chapter%203\" /><chapter position=\"72.199\" thumbnailSource=\"silverlight_72.199.jpg\" title=\"Chapter%204\" /></chapters></playListItem></playListItems></playList>"</span>);<br /> myPlayer.StartUp(dic);<br /><br /> cnvMediaPlayer.Children.Add(myPlayer);<br /> lblLoadPlayer.Text = <span style="color: #a31515">""</span>;<br /> LayoutRoot.UpdateLayout();<br /> <br /> }<br /> <span style="color: blue">catch </span>(<span style="color: #2b91af">Exception </span>e)<br /> {<br /> lblLoadPlayer.Text = <span style="color: #a31515">"Download Error: " </span>+ e.Message;<br /> }<br />}</pre><br /><a href="http://11011.net/software/vspaste"></a><br /><br /><p>If you download the source code you will need to create your own playlist that points to a a movie of your own and set the thumbnails and chapters as you wish. Check the following line of code inside VideoPlayerHoster, Page.xaml.cs </p><br /><br /><p>dic.Add("playlist", "<playList>... </p><br /><br /><p>The Dynamic loading was implemented by looking at these 2 posts: </p><br /><br /><p><a href="http://www.silverlighthack.com/post/2008/09/29/Silverlight-2-%28RC0-RTM%29-Dynamic-Assembly-Loading.aspx">http://www.silverlighthack.com/post/2008/09/29/Silverlight-2-(RC0-RTM)-Dynamic-Assembly-Loading.aspx</a> </p><br /><br /><p><a href="http://silverlight.net/learn/learnvideo.aspx?video=65687">http://silverlight.net/learn/learnvideo.aspx?video=65687</a></p><br /><br /><p><a href="http://silverlight.net/learn/learnvideo.aspx?video=65687"></a></p> Unknownnoreply@blogger.com11tag:blogger.com,1999:blog-6537549.post-54993461417199203282009-01-19T17:42:00.011+00:002009-01-19T23:32:07.019+00:00Using Expression Encoder 2 MediaPlayer Templates in your application<p>Microsoft Expression Encoder 2 SP1 now includes a set of <a href="http://timheuer.com/blog/archive/2008/10/31/expression-sp1-now-available-with-silverlight-2-templates.aspx">Silverlight 2 Output Templates</a>:</p><p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2B4ReYpPRcwFKRao8kEkJBy1d-lGNPFk7m8_9TGNnKE_RYjTPMLS5E6UT2I4xoEXFJjRcfmViHhY6oAoGdkbyh0A1N7AYMLwVlXJFnZWmUVE3HswwggJ2FSX50zdk8injq5ek/s1600-h/clip_image002%5B3%5D.jpg"><img height="244" alt="clip_image002" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAh-VPCV5zp-kMuxUDmz8AuQXiG3HuDxj0369DvKlFlfrBxXMwYYLJtAijDoCmqa2ZvZvRjmkSBjOEEGLRowMXwrxCKdJcTui16NQOTxXtlz40xfERWzoQvCn5uui5pHIE2UGJ/?imgmax=800" width="243" /></a></p><p>After installing SP1 you'll have a some Silverlight 2 templates in "C:\Program Files\Microsoft Expression\Encoder 2\Templates\en".</p><p>The Templates use 2 controls that implement most of the logic that we need on our media apps: MediaPlayer and ExpressionPlayer. These controls take care of all basic media handling functionalities but also Video Marker handling, Chapters and chapter thumbnails, playlists, cpations, etc.</p><p>Out-of-the-box the templates can be hosted in a html or aspx page and the parameters passed when loading the XAP. Here is the html of the page that is created when running your template:</p><p></p><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><pre class="csharpcode"><br /> <span class="kwrd"><</span><span class="html">object</span> <span class="attr">data</span><span class="kwrd">="data:application/x-silverlight-2,"</span> <span class="attr">type</span><span class="kwrd">="application/x-silverlight-2"</span> <span class="attr">width</span><span class="kwrd">="100%"</span> <span class="attr">height</span><span class="kwrd">="100%"</span><span class="kwrd">></span><br /> <span class="kwrd"><</span><span class="html">param</span> <span class="attr">name</span><span class="kwrd">="source"</span> <span class="attr">value</span><span class="kwrd">="MediaPlayerTemplate.xap"</span><span class="kwrd">/></span><br /> <span class="kwrd"><</span><span class="html">param</span> <span class="attr">name</span><span class="kwrd">="onerror"</span> <span class="attr">value</span><span class="kwrd">="onSilverlightError"</span> <span class="kwrd">/></span><br /> <span class="kwrd"><</span><span class="html">param</span> <span class="attr">name</span><span class="kwrd">="initparams"</span> <span class="attr">value</span>='<span class="attr">autoplay</span>=&<span class="attr">lt</span>;$=<span class="attr">TemplateParameter</span>.<span class="attr">AutoPlay</span>$<span class="kwrd">></span>,autoload=<span class="kwrd"><</span>$=TemplateParameter.AutoLoad$<span class="kwrd">></span>,enablecaptions=<span class="kwrd"><</span>$=TemplateParameter.EnableCaptions$<span class="kwrd">></span>,muted=<span class="kwrd"><</span>$=TemplateParameter.Muted$<span class="kwrd">></span>,stretchmode=<span class="kwrd"><</span>$=TemplateParameter.StretchMode$<span class="kwrd">></span>,displaytimecode=<span class="kwrd"><</span>$=TemplateParameter.DisplayTimecode$<span class="kwrd">></span>,playlist=<span class="kwrd"><</span>$=PlayListParam(TemplateParameter.AllowedCodecs)$<span class="kwrd">></span>' <span class="kwrd">/></span> <br /></pre><br /><p>All customization is made via the <strong>initparams</strong>.If you want to use the MediaPlayer inside your own Silverlight application (that happens to use a media player) you need to make same changes in order to pass the parameters by code and not by the initparams of the silverlight object command in HTML as the template does.</p><br /><br /><p>When Silverlight loads the XAP via HTML it calls:</p><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><div class="csharpcode"><br /><pre class="alt"> <span class="kwrd">public</span> Page(<span class="kwrd">object</span> sender, StartupEventArgs e)</pre><br /><pre> {</pre><br /><pre class="alt"> InitializeComponent();</pre><br /><pre> myPlayer.OnStartup(sender, e);</pre><br /><pre class="alt"> }</pre><br /></div><br /><p>Since you cannot create a StartupEventArgs class because it is marked as internal we need another way to pass our parameters from code.</p><br /><br /><p>Here are the changes:</p><br /><br /><p>1. In <strong>ExpressionPlayerControl.cs</strong> change the <strong>OnStartup</strong> method to receive a Dictionary<string, string> instead of StartupEventArgs:</p><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><pre class="csharpcode"><br /><span class="kwrd">public</span> <span class="kwrd">override</span> <span class="kwrd">void</span> OnStartup(<span class="kwrd">object</span> sender, StartupEventArgs e)<br /></pre><br /><p>replace by<br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><pre class="csharpcode"><br /><span class="kwrd">public</span> <span class="kwrd">override</span> <span class="kwrd">void</span> OnStartup(<span class="kwrd">object</span> sender, Dictionary<<span class="kwrd">string</span>, <span class="kwrd">string</span>> e)<br /></pre><br /><br /><p>2. Inside the <strong>OnStartup</strong> method replace "e.InitParams" for InitParams.</p><br /><br /><p>3. Since ExpressionPlayer derives from MediaPlayer and OnStartup is overrided we also need to update the OnStartup method in <strong>MediaPayer.cs:</strong></p><br /><br /><pre class="csharpcode"><span class="kwrd">public</span> <span class="kwrd">override</span> <span class="kwrd">void</span> OnStartup(<span class="kwrd">object</span> sender, StartupEventArgs e)<br /></pre><br /><br /><p>replace by</p><br /><pre class="csharpcode"><span class="kwrd">public</span> <span class="kwrd">override</span> <span class="kwrd">void</span> OnStartup(<span class="kwrd">object</span> sender, Dictionary<<span class="kwrd">string</span>, <span class="kwrd">string</span>> e)<br /></pre><br /><br /><p>4. Since you changed the method signature you also need to update the call to it on Page.xaml.cs and cast it to Dictionary<string, string>:</p><br /><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><div class="csharpcode"><pre class="alt"><span class="kwrd">public</span> Page(<span class="kwrd">object</span> sender, StartupEventArgs e)</pre><br /><pre>{</pre><br /><pre class="alt"> InitializeComponent();</pre><br /><pre> myPlayer.OnStartup(sender, (Dictionary<<span class="kwrd">string</span>, <span class="kwrd">string</span>>) e.InitParams);</pre><br /><pre class="alt">}</pre><br /></div><br /><br /><br /><p>5. Create a new method that will allow your code to costumize the player:</p><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><div class="csharpcode"><pre class="alt"><span class="kwrd">public</span> <span class="kwrd">void</span> StartUp(Dictionary<<span class="kwrd">string</span>, <span class="kwrd">string</span>> InitParams)</pre><br /><pre>{</pre><br /><pre class="alt"> myPlayer.OnStartup(<span class="kwrd">this</span>, InitParams);</pre><br /><pre>}</pre><br /></div><br /><p>6. Now you are ready to costumize your mediaplayer from code:</p><br /><br /><!-- code formatted by http://manoli.net/csharpformat/ --><br /><div class="csharpcode"><br /><pre class="alt"><span class="lnum"> 1: </span>MediaPlayerTemplate.Page myPlayer = asm.CreateInstance(<span class="str">"MediaPlayerTemplate.Page"</span>) <span class="kwrd">as</span> MediaPlayerTemplate.Page;</pre><br /><pre><span class="lnum"> 2: </span>Dictionary<<span class="kwrd">string</span>,<span class="kwrd">string</span>> dic = <span class="kwrd">new</span> Dictionary<<span class="kwrd">string</span>, <span class="kwrd">string</span>>();</pre><br /><pre class="alt"><span class="lnum"> 3: </span>dic.Add(<span class="str">"autoplay"</span>, <span class="str">"true"</span>);</pre><br /><pre><span class="lnum"> 4: </span>dic.Add(<span class="str">"enablecaptions"</span>, <span class="str">"true"</span>);</pre><br /><pre class="alt"><span class="lnum"> 5: </span>dic.Add(<span class="str">"muted"</span>, <span class="str">"false"</span>);</pre><br /><pre><span class="lnum"> 6: </span>dic.Add(<span class="str">"stretchmode"</span>, <span class="str">"0"</span>);</pre><br /><pre class="alt"><span class="lnum"> 7: </span>dic.Add(<span class="str">"displaytimecode"</span>, <span class="str">"false"</span>);</pre><br /><pre><span class="lnum"> 8: </span>dic.Add(<span class="str">"playlist"</span>, <span class="str">"<playList><playListItems><playListItem title=\"\" description=\"\" mediaSource=\"silverlight.wmv\" adaptiveStreaming=\"False\" thumbSource=\"\" frameRate=\"23.9760431376968\" width=\"512\" height=\"284\" ><chapters><chapter position=\"11.256\" title=\"MYMARKER01\" /><chapter position=\"20.033\" thumbnailSource=\"silverlight_20.033.jpg\" title=\"Capitulo%201\" /><chapter position=\"45.585\" thumbnailSource=\"silverlight_45.585.jpg\" title=\"Chapter%202\" /><chapter position=\"58.646\" thumbnailSource=\"silverlight_58.646.jpg\" title=\"Chapter%203\" /><chapter position=\"72.199\" thumbnailSource=\"silverlight_72.199.jpg\" title=\"Chapter%204\" /></chapters></playListItem></playListItems></playList>"</span>);</pre><br /><pre class="alt"><span class="lnum"> 9: </span> </pre><br /><pre><span class="lnum"> 10: </span>myPlayer.StartUp(dic);</pre><br /></div><br /><br /><br /><br /><p>(assuming myPlayer was defined in your Xaml)</p>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6537549.post-208789260973500242008-12-13T22:47:00.003+00:002008-12-13T22:52:06.970+00:00Host Deep Zoom project on Silverlight StreamingIt is possible to host a Deep Zoom project with all it's images on <a href="http://silverlight.live.com/">silverlight.live.com</a><br />It doesn't seem possible at first because the interface asks you to upload only the xap file. So ... where do we put the images ? You just need to do some "magic" as explained <a href="http://blogs.msdn.com/nikola/archive/2008/05/07/deep-zoom-creating-working-application-in-less-than-5-minutes-using-the-new-deep-zoom-composer.aspx">here</a><br /><br />Here is a <a href="http://msbluelight-0.agappdom.net/e1/d/3242/18517843/63364816800/0.LxxH4pNITe8MzOurIMLXhFik9oU/zziframehtml2zz.html#%2f%2fappId%2fClientBin%252fDeepZoomProject.xap%2f%2f%2f%2f%2f%2f%2ftrue%2f2.0%2f1%2fClientBin%252fSilverlight.js">sample project</a> hosted there.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6537549.post-57184009667913452992008-12-13T22:39:00.005+00:002008-12-13T23:40:15.661+00:00Unexpected browser crash with Silverlight 2I'm developing a Silverlight application that uses the <span style="font-weight: bold;">MultiScaleImage </span>control and also some text overlays that i'm scaling according to the Deep Zoom scale. Very often the browser (Internet Explorer, Firefox and Chrome) crashes.<br /><br />It seems there is an issue mixing <span style="font-weight: bold;">ScaleTransform</span> and <span style="font-weight: bold;">MultiScaleImage</span> control as also posted on the <a href="http://silverlight.net/forums/p/34619/147170.aspx">Silverlight Forums</a><br /><br />The Application that has this problem is <a href="http://msbluelight-0.agappdom.net/e1/d/3242/18517404/63364816800/0.Kq82EX4F39tw_SfHyFln4d37Do8/zziframehtml2zz.html#%2f%2fappId%2fClientBin%252fMSEcardNatal.xap%2f%2f%2f%2f%2f%2f%2ftrue%2f2.0%2f0">this one</a> when you enable the checkbox useScaleTransform, but with a different Deep Zoom output. with the one shown here does not seem to reproduce the problem :(<br /><br />Here is the entry on the <span style="font-weight: bold;">event viewer</span>:<br /><br />Faulting application IEXPLORE.EXE, version 7.0.6000.16764, time stamp 0x48f6a2ed, faulting module ntdll.dll, version 6.0.6000.16386, time stamp 0x4549bdf8, exception code 0xc0000029, fault offset 0x000675fc, process id 0xf18, application start time 0x01c95d5ad4de2d60.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6537549.post-82777796602780349962008-10-14T11:56:00.003+01:002008-10-14T20:20:52.070+01:00UX Week with Peter Morville<p style="margin: 0cm 0cm 0pt;">Due to the incresing importance of the user experience and the way information is organized in a site, Fullsix invited <a href="http://semanticstudios.com/about/">Peter Morville</a> to present a series of workshops about: User Experience, Information Architecture and Findability.</p><p style="margin: 0cm 0cm 0pt;"> </p><br /><p style="margin: 0cm 0cm 0pt;">These workshops will happen in November in Lisbon:</p>- 3rd Nov - <a href="http://www.fullsix.pt/uxweek/User-Experience-Strategy.html">User Experience Strategy</a>: Public Talk at Microsoft Portugal.<br /><p style="margin: 0cm 0cm 0pt;">- 4,5th Nov - <a href="http://www.fullsix.pt/uxweek/User-Experience-Design.html">User Experience Workshop</a> (2 days)<br />- 6th Nov - <a href="http://www.fullsix.pt/uxweek/Information-Architecture-Search.html">Information Architecture & Search Workshop</a> (1 day)</p><p style="margin: 0cm 0cm 0pt;"> </p><p style="margin: 0cm 0cm 0pt;"> </p><br /><p style="margin: 0cm 0cm 0pt;">More information can be found at <a href="http://www.fullsix.pt/uxweek/">http://www.fullsix.pt/uxweek/</a></p><br /><p xmlns="" class="zoundry_raven_tags"><br /><!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com --><br /><span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://www.technorati.com/tag/ux+training+portugal" class="ztag" rel="tag">ux training portugal</a></span><br /></p>Unknownnoreply@blogger.com1