Inheritance: IWork
Ejemplo n.º 1
0
        public void BeginWorking(int? stepsCount = null)
        {
            if (IsWorrking == false)
                IsWorrking = true;

            var work = new Work();
            work.InitWork(stepsCount ?? 1);
            work.WorkFinished += ProgressService_OnWorkFinished;

            _worksStack.Push(work);
        }