示例#1
0
        public FixtureClassSelector AddFixtureClassSelector(FixtureClass fixtureClass, int row, int column)
        {
            FixtureClassSelector fixtureClassSelector = new FixtureClassSelector();

            fixtureClassSelector.Margin       = new Thickness(0, 0, 0, 0);
            fixtureClassSelector.Padding      = new Thickness(0, 0, 0, 0);
            fixtureClassSelector.FixtureClass = fixtureClass;
            Grid.SetRow(fixtureClassSelector, row);
            Grid.SetColumn(fixtureClassSelector, column);
            return(fixtureClassSelector);
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.Button = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 3:
                this.FixtureClassSelector = ((TraceWizard.TwApp.FixtureClassSelector)(target));
                return;

            case 4:
                this.MinVolume = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 6:
                this.BorderVolume = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.MinPeak = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.MaxPeak = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.BorderPeak = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.MinMode = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.MaxMode = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.BorderMode = ((System.Windows.Controls.Border)(target));
                return;

            case 13:
                this.MinDuration = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.MaxDuration = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }