示例#1
0
        private void LineInput_Executed(object sender, ExecutedRoutedEventArgs ev)
        {
            var input = Text;

            InputHistory.Add(input);
            _currentHistoryIndex = -1;

            if (OnLineInput(input))
            {
                TextInputArea.Clear( );
            }
        }
        public ITextInputArea CreateTextArea(IForumReader reader, int x, int y, bool isPost = true)
        {
            ITextInputArea area = new TextInputArea(reader, x, y, true);

            return(area);

            //Assembly assembly = Assembly.GetExecutingAssembly();
            //Type commandType = assembly.GetTypes().FirstOrDefault(t => typeof(ITextInputArea).IsAssignableFrom(t));

            //if (commandType == null)
            //{
            //	throw new InvalidOperationException("TextArea not found!");
            //}

            //object[] args = new object[] { reader, x, y, isPost};

            //ITextInputArea commandInstance = (ITextInputArea)Activator.CreateInstance(commandType, args);

            //return commandInstance;
        }
示例#3
0
        public ITextInputArea CreateTextArea(IForumReader reader, int x, int y, bool isPost = true)
        {
            ITextInputArea area = new TextInputArea(reader, x, y, isPost);

            return(area);
        }
 public void FocusTextInputArea( )
 {
     TextInputArea.Focus( );
 }
 public void FocusInputBar( )
 {
     TextInputArea.Focus( );
 }
示例#6
0
 private void RoutedEvent_GotFocus(object sender, RoutedEventArgs ev)
 {
     TextInputArea.Focus( );
 }