Beispiel #1
0
 public WipeTool()
 {
     InitializeComponent();
     views = new List<ItemStatus>();
     usedViews = new List<int>();
     totalSpeed = new WipeSpeed();
     actionExecuter = new ActionExecutor();
     StatusViewHost.PanelDistance = 3;
 }
        private bool RunBeforWipeActions()
        {
            if(_beforeWipeActions != null && _beforeWipeActions.Count > 0) {
                actionExecutor = new ActionExecutor();
                actionExecutor.Session = session;
                actionExecutor.AfterWipe = false;
                actionExecutor.Actions = _beforeWipeActions;
                actionExecutor.Start();

                // stop on error
                if(actionExecutor.Result == false) {
                    return false;
                }
            }

            return true;
        }