コード例 #1
0
ファイル: AddProduct.xaml.cs プロジェクト: HNH12/C_sharp
        private void nameFabricatorTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            DelegateBrush MainBrushColor = GetBrushColor;

            nameFabricatorTextBox.BorderBrush = MainBrushColor();

            nameFabricatorToolTip.Visibility = Visibility.Hidden;
        }
コード例 #2
0
ファイル: AddProduct.xaml.cs プロジェクト: HNH12/C_sharp
        private void typeProductTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            DelegateBrush MainBrushColor = GetBrushColor;

            typeProductTextBox.BorderBrush = MainBrushColor();

            typeProductToolTip.Visibility = Visibility.Hidden;
        }
コード例 #3
0
ファイル: AddProduct.xaml.cs プロジェクト: HNH12/C_sharp
        private void priceProductTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            DelegateBrush MainBrushColor = GetBrushColor;

            priceProductTextBox.BorderBrush = MainBrushColor();

            priceProductToolTip.Visibility = Visibility.Hidden;

            if (sender is TextBox textBox)
            {
                textBox.Text = new string
                               (
                    textBox.Text.Where
                        (symb =>
                        (symb >= '0' && symb <= '9'))
                    .ToArray()
                               );
            }
        }