Ejemplo n.º 1
0
        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...");
        }
Ejemplo n.º 2
0
Archivo: main.cs Proyecto: sdarses/Qt
        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...");
        }