コード例 #1
0
        /// <summary>
        /// PopupPanel closed, need to syncronize it position with cell position.
        /// </summary>
        /// <param name="sender">Ignored.</param>
        /// <param name="e">Ignored.</param>
        private void _PopupPanelOpened(object sender, EventArgs e)
        {
            PopupPositionSynchronizer synchronizer = new PopupPositionSynchronizer(this, _PopupPanel);

            // Set popup's position.
            synchronizer.PositionPopupBelowCellEditor();
        }
コード例 #2
0
        private void _PopupPanel_Opened(object sender, EventArgs e)
        {
            _TransformDaysToControlState();

            PopupPositionSynchronizer synchronizer = new PopupPositionSynchronizer(this, _PopupPanel);

            // Set popup's position.
            synchronizer.PositionPopupBelowCellEditor();
        }
コード例 #3
0
        /// <summary>
        /// React on popup panel opened.
        /// </summary>
        /// <param name="sender">Ignored.</param>
        /// <param name="e">Ignored.</param>
        private void _PopupPanelOpened(object sender, EventArgs e)
        {
            if (_barrier.Geometry is ESRI.ArcLogistics.Geometry.Point ||
                _barrier.Geometry is ESRI.ArcLogistics.Geometry.Polygon)
            {
                _cellLabel.Text = CommonHelpers.ConvertBarrierEffect(_barrier);

                _barrierEditor.Barrier = _barrier;

                PopupPositionSynchronizer synchronizer = new PopupPositionSynchronizer(this, _popupPanel);

                // Set popup's position.
                synchronizer.PositionPopupBelowCellEditor();
            }
        }
コード例 #4
0
        private void _PopupPanelOpened(object sender, EventArgs e)
        {
            // Update control state
            if (TimeWindow != null)
            {
                _TimeWindowToControlState(TimeWindow);
                _CellLabel.Text = TimeWindow.ToString();
                _FromText.InitStartText();
                _ToText.InitStartText();
            }

            PopupPositionSynchronizer synchronizer = new PopupPositionSynchronizer(this, _PopupPanel);

            // Set popup's position.
            synchronizer.PositionPopupBelowCellEditor();
        }
コード例 #5
0
        /// <summary>
        /// Handler for the Opened event of _popupPanel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">Event data.</param>
        private void _PopupPanelOpened(object sender, EventArgs e)
        {
            // Update control state
            if (TimeWindow != null)
            {
                _TimeWindowToControlState(TimeWindow);
                _UpdateCellTextBlockText();
                _fromTimeTextBox.InitStartText();
                _toTimeTextBox.InitStartText();
            }

            PopupPositionSynchronizer synchronizer = new PopupPositionSynchronizer(this, _popupPanel);

            // Set popup's position.
            synchronizer.PositionPopupBelowCellEditor();
        }
コード例 #6
0
        /// <summary>
        /// Synchroniz popup position with relative cell editor when it loaded
        /// and update elements collection.
        /// </summary>
        /// <param name="sender">Ignored.</param>
        /// <param name="e">Ignored.</param>
        private void _ComboBox_DropDownOpened(object sender, EventArgs e)
        {
            this.SelectionChanged -= _ComboBox_SelectionChanged;

            _BuildAvailableCollection();

            _SetComboBoxState();

            this.SelectedIndex = Math.Max(_selectedIndex, 0);

            // set popup's position
            var synchronizer = new PopupPositionSynchronizer(this, _PopupPanel);

            synchronizer.PositionPopupBelowCellEditor();

            this.SelectionChanged += new SelectionChangedEventHandler(_ComboBox_SelectionChanged);
        }