pointofsale_application.EditInventory.TextBox_GotFocus C# (CSharp) Method

TextBox_GotFocus() private method

private TextBox_GotFocus ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
return void
        private void TextBox_GotFocus(object sender, RoutedEventArgs e)
        {
            TextBox tb = (TextBox)sender;
            tb.Text = string.Empty;
            tb.GotFocus -= TextBox_GotFocus;
        }