Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TaskableTool.cs « Tooling - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a7178de9dab897f0f8247e2a92e8534bb2b19e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.clusterrr.hakchi_gui.Tooling
{
    public abstract class TaskableTool
    {
        public delegate void StringDelegate(String status);
        public delegate void IntDelegate(int pct);
        public event IntDelegate ReportProgress;
        public event StringDelegate ReportStatus;
        protected void Status(string theStatus)
        {
            if(ReportStatus != null)
            {
                ReportStatus(theStatus);
            }
        }
        protected void Progress(int theprogress)
        {
            if (ReportProgress != null)
            {
                ReportProgress(theprogress);
            }
        }
        public abstract void Execute();
    }
}