public RemoteActionsCallerForm(RemoteActionsCallerFormView view, IEnumerable <Func <Task <Unit> > > rawOperations, bool needsNewTab) { _view = view; _needsNewTab = needsNewTab; _allOperations = rawOperations.ToList(); _allOperationsCount = _allOperations.Count; _view.Percentage.Value = Percentage.ToString(); }
public RemoteActionsCallerForm(RemoteActionsCallerFormView view, Action <OperationBatchBuilder> operations, bool needsNewTab = false) : this(view, new OperationBatchBuilder(operations).Build(), needsNewTab) { }