examples/activeqt/dotnet/wrapper/main.cs
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Wed, 21 Apr 2010 09:15:16 +0300
branchRCL_3
changeset 10 68d3b337861b
parent 0 1918ee327afb
permissions -rw-r--r--
bac24638cd0e032feaaaf81f375284a059242729

//! [0]
using System;

namespace WrapperApp
{
	class App
	{
		void Run()
		{
			netWorker worker = new netWorker();

			worker.statusStringChanged += new netWorker.__Delegate_statusStringChanged(onStatusStringChanged);

			System.Console.Out.WriteLine(worker.StatusString);

			System.Console.Out.WriteLine("Working cycle begins...");
			worker.StatusString = "Working";
			worker.StatusString = "Lunch Break";
			worker.StatusString = "Working";
			worker.StatusString = "Idle";
			System.Console.Out.WriteLine("Working cycle ends...");
		}

		private void onStatusStringChanged(string str)
		{
			System.Console.Out.WriteLine(str);
		}

		[STAThread]
//! [0] //! [1]
		static void Main(string[] args)
		{
			App app = new App();
			app.Run();
		}
//! [1] //! [2]
	}
//! [2] //! [3]
}
//! [3]