private bool updateShapeName(short index, string strName) { string strError = null; if (!refManager.ChangeName(index, strName, out strError)) { MessageBox.Show(strError, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }