Development & Training in .NET
Subha
This user hasn't shared any biographical information
Homepage: http://www.wafytech.com
Posts by Subha
FREE! Discount Microsoft Certification Exam Voucher
Apr 28th
This free discount Prometric Microsoft certification exam voucher allows you pass your Microsoft certification exams as economically as possible.
If you are planning to take Microsoft Prometric exams, contact me at subhan@wafytech.com with the subject “Need Microsoft Certification Discount Voucher”. I have vouchers that would get you 25% discount on the examination fees, plus a free second shot. The code has been hidden and will change per person. So does the country of your choice.
- The vouchers you get from us are not exam specific. They can be used to take any Microsoft certification exam to complete your MCP, MCSE, MCSA, MCSD, MCTS, MSITP, MCA, MCM, or other Microsoft certification exams that have the exam code starting with “70-”.
- No Restrictions:
- Valid on all Microsoft exams that start with 70-XXX.
- International vouchers and valid at any Prometric testing centers in any country.
- One voucher must be used each time you attempt to pass an exam.
All exam retake attempts are subject to compliance with the Microsoft Certification Exam Retake rules, which state:
“If you do not pass an exam the first time, you may retake it at any time. If you do not achieve a passing score a second time, you must wait at least 14 days to retake the exam a third time. A 14-day waiting period will be imposed for all subsequent exam retakes. If you have passed an exam, you cannot take it again.”
Copy of Microsoft Certification Exam Voucher:
Thanks,
Subha, PMP, MCT (Microsoft Certified Trainer)
Specialized .NET 4.0 Framework trainer on Visual Studio 2010, C#, ASP .NET, WPF, WCF, WF, Silver Light, MS SQL Server 2008, Entity Framework and Dynamic Website.
View our company portfolio at: http://www.wafytech.com/wafy_portfolio.html
Incoming search terms:
- prometric centers in chennai for microsoft certification exam
- microsoft prometric centers in chennai
- microsoft exam centers in chennai
- microsoft certification exam center in chennai
- microsoft certification centers in chennai
- oNLINE EXAMS vouchers
- microsoft exam voucher code chennai
- free prometric voucher april 2012
- microsoft certification net 4 5
- microsoft certification exams in chennai
C# Training on Threading using an example
Mar 17th
Today’s session was about System.Threading. We spoke about the ways in which threading can help develop better applications.
1. Faster code
2. Parallel processing
3. Background processing
4. Priority setting
5. Keep application responding to user inputs, while the thread processes many other functions.
6. Common real-time scenarios in which threads are the most practical solutions.
The above application uses the WorkerThread class to increment the progress bars. The progress bars are incremented to form a sine wave visual. The application when executed will create the illusion of a wave flowing. The full source code is provided to help you understand the concept.
#region Usings
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
#endregion
namespace ThreadApplication
{
class WorkerThread
{
#region Private Variables
private Thread _thread;
public SineForm sineForm { get; set; }
#endregion
#region Properties
public bool IsAlive
{
get
{
return _thread.IsAlive;
}
}
#endregion
#region Constructor
public WorkerThread()
{
_thread = new Thread(Work);
}
#endregion
#region Public Methods
public void Start(object progressBars)
{
_thread.Start(progressBars);
}
public void Stop()
{
_thread.Abort();
}
private void Work(object progressBars)
{
int loopCount = 1;
int max = loopCount;
bool alternate = false;
while (true)
{
// Set defaults
if (loopCount == 1)
{
for (int i = 9; i >= 0; i--)
{
ProgressBar bar = (ProgressBar)((ArrayList)progressBars)[i];
Increment(bar, max);
max++;
}
}
else
{
int prevValue = 0;
for (int i = 9; i >= 0; i--)
{
ProgressBar bar = (ProgressBar)((ArrayList)progressBars)[i];
int prev = bar.Value;
if (i == 9)
{
Increment(bar, max);
}
else
{
Increment(bar, prevValue);
}
prevValue = prev;
}
}
Thread.Sleep(50);
loopCount = (!alternate) ? loopCount + 1 : loopCount - 1;
if ((loopCount < 1) || (loopCount > 10))
{
loopCount = (alternate) ? 1 : 10;
alternate = !alternate;
}
max = loopCount;
}
}
private void Increment(ProgressBar progressBar, int max)
{
Delegate resetDelegate = new EventHandler(Reset);
progressBar.Invoke(resetDelegate);
sineForm.Value = max;
Delegate setDelegate = new EventHandler(sineForm.SetValue);
progressBar.Invoke(setDelegate);
}
#endregion
}
}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
#endregion
namespace WindowsFormsApplication1
{
class WorkerThread
{
#region Private Variables
private Thread _thread;
public SineForm sineForm { get; set; }
#endregion
#region Properties
public bool IsAlive
{
get
{
return _thread.IsAlive;
}
}
#endregion
#region Constructor
public WorkerThread()
{
_thread = new Thread(Work);
}
#endregion
#region Public Methods
public void Start(object progressBars)
{
_thread.Start(progressBars);
}
public void Stop()
{
_thread.Abort();
}
private void Work(object progressBars)
{
int loopCount = 1;
int max = loopCount;
bool alternate = false;
while (true)
{
// Set defaults
if (loopCount == 1)
{
for (int i = 9; i >= 0; i–)
{
ProgressBar bar = (ProgressBar)((ArrayList)progressBars)[i];
Increment(bar, max);
max++;
}
}
else
{
int prevValue = 0;
for (int i = 9; i >= 0; i–)
{
ProgressBar bar = (ProgressBar)((ArrayList)progressBars)[i];
int prev = bar.Value;
if (i == 9)
{
Increment(bar, max);
}
else
{
Increment(bar, prevValue);
}
prevValue = prev;
}
}
Thread.Sleep(50);
loopCount = (!alternate) ? loopCount + 1 : loopCount – 1;
if ((loopCount < 1) || (loopCount > 10))
{
loopCount = (alternate) ? 1 : 10;
alternate = !alternate;
}
max = loopCount;
}
}
private void Increment(ProgressBar progressBar, int max)
{
Delegate resetDelegate = new EventHandler(Reset);
progressBar.Invoke(resetDelegate);
sineForm.Value = max;
Delegate setDelegate = new EventHandler(sineForm.SetValue);
progressBar.Invoke(setDelegate);
}
#endregion
}
}
Incoming search terms:
What is .NET Framework?
Jan 13th
.Net Framework is a Programming Infrastructure created by Microsoft for developing, managing, deploying and running .NET applications and services. It uses Visual Studio 2010 as the development tool to build applications.
.NET Framework is Device Independent and Platform Independent environment that works across environment barriers and this is the biggest advantage of using .NET Framework. The Framework can be run on Servers and Clients. The first .NET Framework was released in 2000 and the current .NET Framework 4 is the 6th release. The .NET versions 1.1, 2.0, 3.0 and 3.5 was included as a default installation package with windows versions Windows Server 2003, Windows Server 2003 R2, Windows Vista/ Windows Server 2008 and with Windows 7/ Windows Server 2008 R2.
.NET Framework includes the following main components:
1. CLR – Common Language Runtime.
2. .NET Framework class library.
3. Development Frameworks.
Have a watch on this space. More to follow soon.
- Subha Narayanan, PMP

