示例#1
0
        private static void ButtonPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTextBox numericUpDownTextBox = (NumericUpDownTextBox)d;

            numericUpDownTextBox.ButtonsViewModel.NotifyPropertyChanged(e.Property.ToString());
        }
示例#2
0
        private static void MinMaxValueChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTextBox numericUpDownTextBox = d as NumericUpDownTextBox;

            numericUpDownTextBox.FixValue();
        }
示例#3
0
 public ButtonsProperties(NumericUpDownTextBox textBox)
 {
     this.parent = textBox;
 }
示例#4
0
        private static void ValueChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTextBox numericUpDownTextBox = d as NumericUpDownTextBox;

            numericUpDownTextBox.Text = e.NewValue.ToString();
        }
示例#5
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TS3TrayOptions = (SetupWindow)target;
                return;

            case 2:
                this.uiGridMain = (Grid)target;
                return;

            case 3:
                this.CloseButton = (SlickToggleButton)target;
                return;

            case 4:
                this.tsAddress = (TextBox)target;
                return;

            case 5:
                this.tsQueryPort = (NumericUpDownTextBox)target;
                return;

            case 6:
                this.tsQueryname = (TextBox)target;
                return;

            case 7:
                this.tsQuerypw = (PasswordBox)target;
                return;

            case 8:
                this.tsServerNr = (NumericUpDownTextBox)target;
                return;

            case 9:
                this.checkBox1 = (CheckBox)target;
                return;

            case 10:
                this.checkBox2 = (CheckBox)target;
                return;

            case 11:
                this.tsUpdateIntervall = (NumericUpDownTextBox)target;
                return;

            case 12:
                this.tsNickname = (TextBox)target;
                return;

            case 13:
                this.tsServerpw = (PasswordBox)target;
                return;

            case 14:
                this.checkBoxNotification1 = (CheckBox)target;
                return;

            case 15:
                this.checkBoxNotification2 = (CheckBox)target;
                return;

            case 16:
                this.comboBoxNotificationType = (ComboBox)target;
                return;

            case 17:
                ((Button)target).Click += new RoutedEventHandler(this.Button_Click);
                return;

            case 18:
                ((Button)target).Click += new RoutedEventHandler(this.CloseButton_Click);
                return;

            case 19:
                this.TitleLabel = (Label)target;
                return;

            default:
                this._contentLoaded = true;
                return;
            }
        }