コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.XMinTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 2:
                this.XMaxTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 3:
                this.YMinTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 4:
                this.YMaxTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 5:
                this.ConfirmButton = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.CancelButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AddGraphicButton = ((System.Windows.Controls.Button)(target));
                return;

            case 2:
                this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 3:
                this.GreenCheckIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 4:
                this.FunctionComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.NameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.ParamATextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 7:
                this.ParamBTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 8:
                this.ParamCWrapPanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 9:
                this.ParamCTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 10:
                this.ColorSelectionColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.NameModTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.FunctionModComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.ParamAModTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 4:
                this.ParamBModTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 5:
                this.ParamCLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.ParamCModTextBox = ((WinMaths.NumericTextBoxClass)(target));
                return;

            case 7:
                this.ColorModColorPicker = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;

            case 8:
                this.ConfirmButton = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.CancelButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }