Beispiel #1
0
        private void InitializeGridControl()
        {
            gridControl1.Model.ColumnCount                     = 50;
            gridControl1.Model.RowCount                        = 50;
            this.gridControl1.Model.ColumnWidths[0]            = 40;
            gridControl1.Model.Options.ExcelLikeSelectionFrame = true;
            gridControl1.Model.Options.ExcelLikeSelection      = true;
            GridFillSeriesMouseController controller = new GridFillSeriesMouseController(this.gridControl1);

            this.gridControl1.MouseControllerDispatcher.Add(controller);
        }
Beispiel #2
0
        public FillDropDownItem(GridFillSeriesMouseController SeriesController)
            : this()
        {
            this.SeriesController = SeriesController;
            ItemsSource           = new ObservableCollection <RadioButton>();


            if ((SeriesController.Filltype & SeriesType.CopySeries) == SeriesType.CopySeries)
            {
                RadioButton CopySeriesButton = new RadioButton()
                {
                    Content = "CopySeries", GroupName = "FillSeriesGroup"
                };
                CopySeriesButton.IsChecked = (SeriesController.InnerFillType & SeriesType.CopySeries) == SeriesType.CopySeries;
                CopySeriesButton.Checked  += RadioButtonChecked;
                ItemsSource.Add(CopySeriesButton);
            }

            if ((SeriesController.Filltype & SeriesType.FillSeries) == SeriesType.FillSeries)
            {
                RadioButton FillSeriesButton = new RadioButton()
                {
                    Content = "FillSeries", GroupName = "FillSeriesGroup"
                };
                FillSeriesButton.IsChecked = (SeriesController.InnerFillType & SeriesType.FillSeries) == SeriesType.FillSeries;
                FillSeriesButton.Checked  += RadioButtonChecked;
                ItemsSource.Add(FillSeriesButton);
            }

            if ((SeriesController.Filltype & SeriesType.FillFormatOnly) == SeriesType.FillFormatOnly)
            {
                RadioButton FillFormatOnlyButton = new RadioButton()
                {
                    Content = "FillFormatOnly", GroupName = "FillSeriesGroup"
                };
                FillFormatOnlyButton.IsChecked = (SeriesController.InnerFillType & SeriesType.FillFormatOnly) == SeriesType.FillFormatOnly;
                FillFormatOnlyButton.Checked  += RadioButtonChecked;
                ItemsSource.Add(FillFormatOnlyButton);
            }

            if ((SeriesController.Filltype & SeriesType.FillWithoutFormat) == SeriesType.FillWithoutFormat)
            {
                RadioButton FillWithoutFormatButton = new RadioButton()
                {
                    Content = "FillWithoutFormat", GroupName = "FillSeriesGroup"
                };
                FillWithoutFormatButton.IsChecked = (SeriesController.InnerFillType & SeriesType.FillWithoutFormat) == SeriesType.FillWithoutFormat;
                FillWithoutFormatButton.Checked  += RadioButtonChecked;
                ItemsSource.Add(FillWithoutFormatButton);
            }
        }