コード例 #1
0
 private void txtFill_GotFocus(object sender, RoutedEventArgs e)
 {
     if (SurveyHelper.IsTouch == "IsTouch_true")
     {
         SurveyTaptip.ShowInputPanel();
     }
 }
コード例 #2
0
        private void method_11(object sender, RoutedEventArgs e = null)
        {
            Brush   foreground = (Brush)base.FindResource("PressedBrush");
            TextBox textBox    = (TextBox)sender;
            int     num        = (int)textBox.Tag;

            this.listTexts[num].Foreground      = foreground;
            this.listLeftTexts[num].Foreground  = foreground;
            this.listRightTexts[num].Foreground = foreground;
            textBox.SelectAll();
            if (SurveyHelper.IsTouch == "IsTouch_true")
            {
                SurveyTaptip.ShowInputPanel();
            }
            if (this._nLastTextBox < this.listW.Count - 1)
            {
                if (this.listFills[this._nLastTextBox].Text != "")
                {
                    this._nLastTextBox++;
                    this.listW[this._nLastTextBox].Visibility = Visibility.Visible;
                }
                if (num > 0 && num == this._nLastTextBox && this.listFills[num - 1].Text != "")
                {
                    this._nLastTextBox++;
                    this.listW[this._nLastTextBox].Visibility = Visibility.Visible;
                }
            }
        }
コード例 #3
0
 private void txtNewAnswer_LostFocus(object sender, RoutedEventArgs e)
 {
     if (SurveyHelper.IsTouch == "IsTouch_true")
     {
         SurveyTaptip.HideInputPanel();
     }
 }
コード例 #4
0
        private void method_10(object sender, RoutedEventArgs e = null)
        {
            Brush   foreground = (Brush) new BrushConverter().ConvertFromString("White");
            TextBox textBox    = (TextBox)sender;
            int     num        = (int)textBox.Tag;

            this._CurrentTextBox                = num;
            textBox.Text                        = textBox.Text.Trim();
            this.listTexts[num].Foreground      = foreground;
            this.listLeftTexts[num].Foreground  = foreground;
            this.listRightTexts[num].Foreground = foreground;
            if (SurveyHelper.IsTouch == "IsTouch_true")
            {
                SurveyTaptip.HideInputPanel();
            }
            if (this._nLastTextBox > 1 && this.listFills[this._nLastTextBox].Text == "" && this.listFills[this._nLastTextBox - 1].Text == "")
            {
                this.listW[this._nLastTextBox].Visibility = Visibility.Collapsed;
                this._nLastTextBox--;
            }
        }
コード例 #5
0
 private void btnTaptip_Click(object sender, RoutedEventArgs e)
 {
     SurveyTaptip.ShowInputPanel();
 }