InitWork() public method

public InitWork ( int stepsCount ) : void
stepsCount int
return void
        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);
        }
        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);
        }