Beispiel #1
0
        private void activateField(DimensionField activeDimensionField)
        {
            columnsGroupBox.BorderBrush = Brushes.LightGray;
            rowsGroupBox.BorderBrush    = Brushes.LightGray;
            centralGroupBox.BorderBrush = Brushes.LightGray;

            columnsGroupBox.BorderThickness = new Thickness(1);
            rowsGroupBox.BorderThickness    = new Thickness(1);
            centralGroupBox.BorderThickness = new Thickness(1);

            if (activeDimensionField != null)
            {
                if (activeDimensionField == ColumnsField)
                {
                    columnsGroupBox.BorderBrush     = Brushes.Black;
                    columnsGroupBox.BorderThickness = new Thickness(2);
                }
                else if (activeDimensionField == RowsField)
                {
                    rowsGroupBox.BorderBrush     = Brushes.Black;
                    rowsGroupBox.BorderThickness = new Thickness(2);
                }
                else
                {
                    centralGroupBox.BorderBrush     = Brushes.Black;
                    centralGroupBox.BorderThickness = new Thickness(2);
                }
            }
        }
Beispiel #2
0
        private void OnUpdated(object item)
        {
            DimensionField field = (DimensionField)item;

            if (throwEvent && Changed != null)
            {
                Changed();
            }
        }
Beispiel #3
0
        private void OnActivated(object item)
        {
            DimensionField field = (DimensionField)item;

            this.ActiveDimensionField = field;
        }