예제 #1
0
        } /* UpdateProcessNameChange */

        private void  UpdateDataFields(PicesDataBase updDbConn)
        {
            updDbConn.MLClassUpdate(selectedClass.Name, newClassEntry);
            if (newClassEntry.Parent != origParent)
            {
                if ((origParent != null) && (origParent.Children != null))
                {
                    origParent.Children.Remove(selectedClass);
                }
            }
        } /* UpdateDataFields */
예제 #2
0
        } /* UpdateProcessMerge */

        private void  UpdateProcessNameChange(PicesDataBase updDbConn)
        {
            RunLogAddMsg("Change ClassName[" + origClassName + "]  to [" + newClassName + "]" + "\n");

            bool successful = false;

            PicesClass.ChangeNameOfClass(selectedClass, newClassName, ref successful);
            if (!successful)
            {
                RunLogAddMsg("  *** Name Change Failed ***" + "\n");
            }
            else
            {
                // This call will also update the ParentName in other classes that point to the old name.
                updDbConn.MLClassUpdate(origClassName, selectedClass);
            }
        } /* UpdateProcessNameChange */