Example #1
0
        private void textName_Validated(object sender, EventArgs e)
        {
            // _dataSetの途中変更を防ぐ
            MotionDataSet dataSet = _dataSet;

            if (dataSet == null)
            {
                return;
            }
            string text = PathEx.NormalizePath(textName.Text);

            if (text == _defaultName)
            {
                return;
            }
            string newName = PathEx.CombineName(_currentGroup, text);

            dataSet.RenameSelectedObjects(newName, this);
        }