aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Stubs_Handler/Progress.h
blob: a0595e4b944e2040d07ffbed703ea6c86b2fb802 (plain)
1
2
3
4
5
6
7
#ifndef PROGRESS_H
#define PROGRESS_H

#include "PMR/Common/MessageContainer.pb-c.h"
void Stub_ProgressRequest(MessageContainer* requestContainer);

#endif //PROGRESS_H
Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Integration.Operation
{
    public class SpoolChangeRequiredEventArgs : EventArgs
    {
        private Action _confirmAction;
        private Action _abortAction;

        public SpoolChangeRequiredEventArgs(Action confirmAction, Action abortAction)
        {
            _confirmAction = confirmAction;
            _abortAction = abortAction;
        }

        public int CurrentSegment { get; set; }
        public int TotalSegments { get; set; }

        public void Confirm()
        {
            _confirmAction();
        }

        public void Abort()
        {
            _abortAction();
        }
    }
}