void tip_TextInserting(object sender, TextInsertionEventArgs e)
 {
     seForm.m_richTextBox1.Text += "TextInserting: " + e.GetInk().Length.ToString() + " Ink objects" + Environment.NewLine;
 }
        /// <summary>
        /// Event Handlers for TextInputPanel Events.
        /// 
        /// When TIP UI changes, or ink is inserting/inserted, events are triggered respectively.
        /// </summary>
        /// <param name="sender">The control that raised the event.</param>
        /// <param name="e">The event arguments.</param>
        void tip_TextInserted(object sender, TextInsertionEventArgs e)
        {
            seForm.m_richTextBox1.Text += "TextInserted: " + e.GetInk().Length.ToString() + " Ink objects" + Environment.NewLine;

            //If this event is triggered by tipSignature, store the ink input.
            if (sender.Equals(tipSignature))
            {

                // Remove the old ink
                this.insertedInk.Clear();

                //Store ink collected from the TIP
                foreach(Ink ink in e.GetInk())
                {
                    insertedInk.Add(ink);
                }

                //Refresh drawing panel
                panelForSignature.Refresh();
            }
        }