示例#1
0
        private void initializeVars()
        {
            this.log = new Log(this);
            this.softKeyboard = new SoftKeyboard(this.softKeyboardCanvas, this.log);
            this.taskTextBlock = new TextBox();
            Canvas.SetLeft(this.taskTextBlock, Canvas.GetLeft(this.inputTextBox));
            Canvas.SetTop(this.taskTextBlock, Canvas.GetTop(this.inputTextBox) - Config.taskInputBlockHeight);
            this.taskTextBlock.Width = Config.taskTextBlockWidth;
            this.taskTextBlock.Height = Config.taskTextBlockHeith;
            this.taskTextBlock.Background = Config.taskTextBlockBackground;
            this.taskTextBlock.Foreground = Config.taskTextBlockForeground;
            this.taskTextBlock.FontSize = Config.taskTextBlockFontSize;
            this.taskTextBlock.BorderThickness = new Thickness(0);
            this.taskTextBlock.Focusable = false;
            //this.taskTextBlock.ena
            this.inputCanvas.Children.Add(this.taskTextBlock);
            this.taskTextBlock.Visibility = Config.showTask ? Visibility.Visible : Visibility.Hidden;
            this.taskTextBlock.Text = "task";
            this.taskTextBlock.FontFamily = Config.fontFamily;
            this.inputTextBox.Width = Config.taskInputBlockWidth;
            this.inputTextBox.Height = Config.taskInputBlockHeight;
            this.inputTextBox.Background = Config.taskInputBlockBackground;
            this.inputTextBox.Foreground = Config.taskInputBlockForeground;
            this.inputTextBox.FontSize = Config.taskInputBlockFontSize;
            this.inputTextBox.VerticalAlignment = VerticalAlignment.Center;
            this.inputTextBox.FontFamily = Config.fontFamily;

            this.task = new Tasks(this.taskTextBlock, this.inputTextBox, this.taskStatusBlock, this.softKeyboard);
            this.log.setTasks(this.task);
            //this.behaviorLog.setTasks(this.task);
            this.softKeyboard.setTasks(this.task);
            this.touchAnalyzer = new TouchAnalyzer(this, this.softKeyboard);
        }
示例#2
0
文件: Log.cs 项目: swnhieian/Keyboard
 public void setTasks(Tasks tasks)
 {
     this.tasks = tasks;
 }
示例#3
0
 public void setTasks(Tasks task)
 {
     this.wordPredictor.setTasks(task);
 }