private void RunActions()
        {
            var actions = actionContainer.GenerateActions();

            if (actions == null || actions.Count == 0)
            {
                mainVM.Toast("请至少添加一个操作", Types.ToastType.Failed);
            }
            else
            {
                mainVM.Toast("正在执行操作", Types.ToastType.Warning);
                VisualStateManager.GoToElementState(page, "ActionsRuning", true);
                ActionTask.OnActionState      += ActionTask_OnActionInvoke;
                ActionTask.OnActionGroupState += ActionTask_OnActionsState;
                ActionTask.RunTestInvokeAction(actions);
            }
        }
        private ProjectModel GenerateModel(ActionContainer container)
        {
            ProjectModel project = null;

            if (mainVM.Data != null)
            {
                project = projects.GetProject((int)mainVM.Data);
            }
            if (project == null)
            {
                project = new ProjectModel();
            }
            project.ProjectName        = ProjectName;
            project.EventID            = SelectedEventID;
            project.ConditionData      = ConditionData;
            project.ProjectDescription = ProjectDescription;
            project.Actions            = container.GenerateActions();
            project.Icon = ProjectIcon;
            if (mainVM.SelectedGroup != null)
            {
                project.GroupID = mainVM.SelectedGroup.ID;
            }
            return(project);
        }