by Agnaldo
19. junho 2010 21:15

Quer aprender os recursos do novo Visual Studio 2010 sem pagar nada? Acesse http://launchoffer.appdev.com/, cadastre-se e aproveite.
O conteúdo apresentado é:
- Exploring Visual Studio 2010 Using Visual Basic or Visual C# (full course)
- Investigate new language features and see the benefits of the new WPF-based IDE.
- Learn about many of the new ASP.NET Web Forms features.
- See how the all-new Workflow 4.0 works and get started learning its features.
- Create services using the new features in WCF.
- Drill into new WPF features, focusing on new controls, data binding and more.
- Create Silverlight applications using the new designer built into Visual Studio 2010.
- Incorporate Office 2010 features into .NET applications, focusing on SharePoint 2010.
- Exploring Visual Studio 2010 ALM Tools (4 out of 8 modules)
- See the new features of Visual Studio 2010 for Application Lifecycle Management (ALM)
- Understand about Team System and Excel Reports as well as Ad-hoc reporting.
- Then move on to Version Control with Team Foundation Server version control concepts
- Learn about Microsoft Test and Lab Manager for test plans for both manual and automated testing.
by Agnaldo
18. junho 2010 16:37

Baixem o executável abaixo e respondam: o que é isso?
queIsso.rar (5,39 kb)
Depois que alguém descobrir, eu posto o código-fonte que foi escrito usando C# 3.0.
Podem baixar tranquilos que não tem vírus.
Té+
UPDATE 20100619: É um relógio binário, sim... E podem baixar o projeto completo clicando em 100-RelogioBinario.rar (53,24 kb). O código está menor que o mostrado pelo Bruno, pois dei uma otimizadinha nele. A parte que acende os leds agora tem 4 linhas em vez de 21.
by Agnaldo
18. junho 2010 09:50

No dia 30/06/2010 às 16:00h estarei na Resource ministrando a palestra de uma hora Novidades do Visual Studio 2010 onde abordarei os seguintes tópicos:
- Novidades do Visual Studio 2010
- Novidades do Framework 4.0
- Novidades do C# 4 e do VB.Net 10
Se e somente se você for funcionário da Resource, pode fazer a inscrição enviando um e-mail para silvia.okada@resource.com.br dizendo que quer participar.
by Agnaldo
6. junho 2010 16:22
<!--App.xaml-->
<Application x:Class="_006_ApplicationCurrent.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml" Startup="Application_Startup">
</Application>
//App.xaml.cs
using System;
using System.Windows;
namespace _006_ApplicationCurrent
{
public partial class App : Application
{
private void Application_Startup(object sender, StartupEventArgs e)
{
foreach (var item in Application.Current.Windows)
{
MessageBox.Show(String.Format(
"Application_Startup: a janela {0} está aberta", item));
}
}
}
}
<!--Window1.xaml-->
<Window x:Class="_006_ApplicationCurrent.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<Button Padding="10" HorizontalAlignment="Center"
VerticalAlignment="Center" Name="button1"
Click="button1_Click">esse é um Button</Button>
</Grid>
</Window>
//Window1.xaml.cs
using System;
using System.Windows;
namespace _006_ApplicationCurrent
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
foreach (var item in Application.Current.Windows)
{
MessageBox.Show(String.Format(
"button1_Click: a janela {0} está aberta", item));
}
var janelaPrincipal = Application.Current.MainWindow;
MessageBox.Show(String.Format(
"A janela principal do aplicativo é: {0}", janelaPrincipal));
}
}
}
by Agnaldo
6. junho 2010 16:15
<!--App.xaml-->
<Application x:Class="_005_ApplicationEvents.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml"
Startup="Application_Startup"
Exit="Application_Exit"
SessionEnding="Application_SessionEnding"
Activated="Application_Activated"
Deactivated="Application_Deactivated"
DispatcherUnhandledException="Application_DispatcherUnhandledException">
<Application.Resources>
</Application.Resources>
</Application>
//App.xaml.cs
using System;
using System.Windows;
using System.Windows.Threading;
namespace _005_ApplicationEvents
{
public partial class App : Application
{
private void Application_Startup(object sender,
StartupEventArgs e)
{
Console.WriteLine("Application_Startup");
}
private void Application_Exit(object sender,
ExitEventArgs e)
{
Console.WriteLine("Application_Exit");
}
private void Application_SessionEnding(object sender,
SessionEndingCancelEventArgs e)
{
Console.WriteLine("Application_SessionEnding");
Console.WriteLine("motivo: {0}", e.ReasonSessionEnding);
e.Cancel = true;
}
private void Application_Activated(object sender,
EventArgs e)
{
Console.WriteLine("Application_Activated");
}
private void Application_Deactivated(object sender,
EventArgs e)
{
Console.WriteLine("Application_Deactivated");
}
private void Application_DispatcherUnhandledException(object sender,
DispatcherUnhandledExceptionEventArgs e)
{
Console.WriteLine("Application_DispatcherUnhandledException");
}
}
}
<!--Window1.xaml-->
<Window x:Class="_005_ApplicationEvents.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
</Grid>
</Window>
using System.Windows;
namespace _005_ApplicationEvents
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
}
}