void ProcessTextBoxEditing()
{
// Only if the textbox is actually visible
if ( textBox.Visible == false ) return;
string text = textBox.Text;
textBox.Visible = false;
int index;
HitTest(lastClickedPoint, out index, false);
if ( editingAnItem )
{
bands[currentBandIndex].Items[index].Text = text;
// Fire property changed
FirePropertyChanged(OutlookBarProperty.ShortcutNameChanged);
}
else
{
bands[index].Text = text;
// Fire property changed
FirePropertyChanged(OutlookBarProperty.GroupNameChanged);
}
// Invalidate control so that new label size
// is recalculated
Invalidate();
}
#endregion