BlipFace.View.StatusListControl.CiteUser_Executed C# (CSharp) Method

CiteUser_Executed() private method

Komenda wywoływana gdy naciśniemy cytuj
private CiteUser_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object
e System.Windows.Input.ExecutedRoutedEventArgs
return void
        private void CiteUser_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var status = (StatusViewModel) e.Parameter;
            int position = tbMessage.SelectionStart;

            int currentPosition = presenter.MakeCitation(status, tbMessage.Text, position);

            if (tbMessage.Text.Length > 0)
            {
                tbMessage.Select(currentPosition, 0);
            }
            tbMessage.Focus();
        }