Example #1
0
        public void UpdateVariableNameChange(GeneralParam parameter)
        {
            if (parameter == null)
            {
                return;
            }

            else
            {
                ObservableList <BusinessFlow> bfs = WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems <BusinessFlow>();

                foreach (BusinessFlow bf in bfs)
                {
                    foreach (Activity activity in bf.Activities)
                    {
                        foreach (Act action in activity.Acts)
                        {
                            bool changedwasDone = false;
                            GeneralParam.UpdateNameChangeInItem(action, AppOwner.Name, parameter.NameBeforeEdit, parameter.Name, ref changedwasDone);
                        }
                    }
                }
            }
            parameter.NameBeforeEdit = parameter.Name;
        }
        public void UpdateVariableNameChange(GeneralParam parameter)
        {
            if (parameter == null)
            {
                return;
            }

            else
            {
                ObservableList <BusinessFlow> bfs = App.LocalRepository.GetSolutionBusinessFlows();

                foreach (BusinessFlow bf in bfs)
                {
                    foreach (Activity activity in bf.Activities)
                    {
                        foreach (Act action in activity.Acts)
                        {
                            bool changedwasDone = false;
                            GeneralParam.UpdateNameChangeInItem(action, AppOwner.Name, parameter.NameBeforeEdit, parameter.Name, ref changedwasDone);
                            if (changedwasDone == true && bf.IsDirty == false)
                            {
                                bf.SaveBackup();
                            }
                        }
                    }
                }
            }
            parameter.NameBeforeEdit = parameter.Name;
        }