EKG_Project.GUI.ECG_BASELINE.textBoxNumeric_Pasting C# (CSharp) Method

textBoxNumeric_Pasting() private method

private textBoxNumeric_Pasting ( object sender, System.Windows.DataObjectPastingEventArgs e ) : void
sender object
e System.Windows.DataObjectPastingEventArgs
return void
        private void textBoxNumeric_Pasting(object sender, DataObjectPastingEventArgs e)
        {
            string input = string.Empty;
            if (e.DataObject.GetDataPresent(typeof(string)))
            {
                if (!this.isNumericInput((string)e.DataObject.GetData(typeof(string))))
                    e.CancelCommand();
            }
            else
                e.CancelCommand();
        }