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); }
public void setTasks(Tasks tasks) { this.tasks = tasks; }
public void setTasks(Tasks task) { this.wordPredictor.setTasks(task); }