private void Title_OnCommit(pTextBox sender, bool newText)
        {
            if (renaming)
            {
                //Don't allow zero length
                if (title.Text.Length == 0)
                {
                    Name = originalName.Length > TEXT_LENGTH_LIMIT
                        ? originalName.Substring(0, TEXT_LENGTH_LIMIT)
                        : originalName;

                    ChangeCollectionName(originalName, Name);
                    originalName = Name;
                    title.Text   = Name;
                }
                else
                {
                    ChangeCollectionName(originalName, title.Text);
                    originalName = title.Text;
                    Name         = title.Text;
                }
                renaming = false;
                UpdateState();
                CollectionDialog.ChangeSelection(this);
            }
        }
 private void Title_OnClick(object sender, EventArgs e)
 {
     Selected = true;
     UpdateState();
     CollectionDialog.ChangeSelection(this);
 }