예제 #1
0
        private void SetupButton_Click(object sender, RoutedEventArgs e)
        {
            SetupWindow setupWindow = new SetupWindow();

            setupWindow.ShowDialog();
            this.LoadSettings();
        }
예제 #2
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;
            }
        }