Пример #1
0
        /// <summary>
        /// Initializes a new instance of the SequenceLine class.
        /// </summary>
        /// <param name="sequence">Sequence instance this control will hold</param>
        /// <param name="parent">Parent panel for this control, Must be a SequencesPanel object</param>
        public SequenceLine(ISequence sequence, SequencesPanel parent)
        {
            InitializeComponent();

            this.sequence            = sequence;
            this.parentSequencePanel = parent;

            containerGrid.RowDefinitions[0].Height      = parent.IsMetadataVisible ? new GridLength(CharHeight) : new GridLength(0);
            this.containerGrid.RowDefinitions[1].Height = new GridLength(parent.CharHeight + sequenceItemsBorder.BorderThickness.Top + sequenceItemsBorder.BorderThickness.Bottom);
            AlignmentLength = sequence.Count;

            this.closeSequenceButton.Visibility = parentSequencePanel.AllowRemove == true ? Visibility.Visible : Visibility.Collapsed;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.consensusCustomView = ((SequenceAssembler.ConsensusCustomView)(target));
                return;

            case 2:
                this.ghostText = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.customView = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.legendRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.topViewRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 6:
                this.consensusSequenceSplitter = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 7:
                this.consensusGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.consensusSequence = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.consensusLine = ((System.Windows.Shapes.Line)(target));
                return;

            case 10:
                this.topViewLines = ((SequenceAssembler.SequenceLinesPanel)(target));
                return;

            case 11:
                this.topViewVerticalScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 12:
                this.rangeSlider = ((SequenceAssembler.RangeSlider)(target));
                return;

            case 13:
                this.sequencePanelHorizontalScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 98 "..\..\ConsensusCustomView.xaml"
                this.sequencePanelHorizontalScrollBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OnSequencePanelHorizontalScrollBarValueChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.sequencePanelVerticalScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 15:
                this.sequencesBottomView = ((SequenceAssembler.SequencesPanel)(target));
                return;

            case 16:
                this.funnelLeftLine = ((System.Windows.Shapes.Line)(target));
                return;

            case 17:
                this.funnelRightLine = ((System.Windows.Shapes.Line)(target));
                return;
            }
            this._contentLoaded = true;
        }