예제 #1
0
        public DropDownFormCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            this.ddForm = ((DropDownFormCellModel)this.Model).ddForm;

            this.AddButton(new GridCellComboBoxButton(this));
        }
예제 #2
0
 public PivotButtonCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     AddButton(pushButton = new GridCellButton(this));
     //AddButton(pushButton = new GridDataBoundTreeCellButton(this));
     this.ForceRefreshOnActivateCell = true;
 }
예제 #3
0
 public PictureBoxCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     cm = (PictureBoxCellModel)cellModel;
     SupportsFocusControl = false;
     FixControlParent(drawPictureBox);
 }
예제 #4
0
 public TreeCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     _indentSize  = 20;
     bitmapWidth  = 20;
     bitmapHeight = 17;
 }
예제 #5
0
 public DropDownGridCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     this.DisableTextBox = true;
     DropDownButton      = new GridCellComboBoxButton(this);
     this.grid           = null;
 }
예제 #6
0
        /// <summary>
        /// Initializes a new <see cref="GridCellRendererBase"/> object for the given GridControlBase
        /// and <see cref="GridCellModelBase"/>.
        /// </summary>
        /// <param name="grid">The <see cref="GridControlBase"/> that display this cell renderer.</param>
        /// <param name="cellModel">The <see cref="GridCellModelBase"/> that holds data for this cell renderer that should
        /// be shared among views.</param>
        /// <remarks>References to GridControlBase,
        /// and GridCellModelBase will be saved.</remarks>
        public GridDataBoundTreeCellRenderer(GridControlBase grid, GridCellModelBase cellModel, TreeGridHelper helper)
            : base(grid, cellModel)
        {
            AddButton(new GridDataBoundTreeCellButton(this, helper));

            lineColor = Color.Black;

            this.treeHelper = helper;
        }
예제 #7
0
 public едакторЯчеек_РедакторИзображения_Renderer(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
     this.drawредакторИзображения = new Изображение();
     this.editредакторИзображения = new Изображение();
     this.editредакторИзображения.EditValueChanged += new EventHandler(this.editредакторИзображения_EditValueChanged);
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawредакторИзображения);
     base.SetControl(this.editредакторИзображения);
 }
 public едакторЯчеек_МногострочныйРедактор_Renderer(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
     this.drawПолеМногострРедактора = new ВыпадающийТекст();
     this.editПолеМногострРедактора = new ВыпадающийТекст();
     this.editПолеМногострРедактора.EditValueChanged += new EventHandler(this.editПолеМногострРедактора_EditValueChanged);
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawПолеМногострРедактора);
     base.SetControl(this.editПолеМногострРедактора);
 }
 public едакторЯчеек_РедакторВремени_Renderer(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
     this.drawРедакторВремени = new TimeEdit();
     this.editРедакторВремени = new TimeEdit();
     this.editРедакторВремени.EditValueChanged += new EventHandler(this.editПолеВыбораДаты_EditValueChanged);
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawРедакторВремени);
     base.SetControl(this.editРедакторВремени);
 }
 public едакторЯчеек_ТекстСМаской_Renderer(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
     this.drawРедакторСМаской = new ПолеВводаТекста();
     this.editРедакторСМаской = new ПолеВводаТекста();
     this.editРедакторСМаской.EditValueChanged += new EventHandler(this.editТекстСМаской_EditValueChanged);
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawРедакторСМаской);
     base.SetControl(this.editРедакторСМаской);
 }
예제 #11
0
 public TreeCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     _indentSize  = 20;
     bitmapWidth  = 20;
     bitmapHeight = 17;
     nodeList     = new Hashtable();
     nodeList.Add(this.Grid.Model[1, 3].Text, "Added");
 }
예제 #12
0
 public едакторЯчеек_ВыборДаты_Renderer(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
     this.drawПолеВыбораДаты = new ПолеВыбораДаты();
     this.editПолеВыбораДаты = new ПолеВыбораДаты();
     this.drawПолеВыбораДаты.НазначитьКнопки();
     this.editПолеВыбораДаты.EditValueChanged += new EventHandler(this.editПолеВыбораДаты_EditValueChanged);
     this.editПолеВыбораДаты.НазначитьКнопки();
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawПолеВыбораДаты);
     base.SetControl(this.editПолеВыбораДаты);
 }
예제 #13
0
 public SliderCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     cm = (SliderCellModel)cellModel;
     SupportsFocusControl = true;
     FixControlParent(drawSlider);
     SetControl(editSlider);
     editSlider.AutoSize      = false;
     editSlider.ValueChanged += new EventHandler(trackBar_ValueChanged);
     cm.trackBarControlSize   = drawSlider.Size;
 }
예제 #14
0
        public LinkLabelCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            _isMouseDown = false;
            _drawHotLink = false;

            _hotColor     = Color.Red;
            _visitedColor = Color.Purple;

            _EXEname = "iexplore.exe";
        }
예제 #15
0
 public DragButtonCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     mybuttons = new CellDragButton[3];
     for (int n = 0; n < 3; n++)
     {
         mybuttons[n] = new CellDragButton(this);
         AddButton(mybuttons[n]);
     }
     mybuttons[1].Interior = new BrushInfo(GradientStyle.PathEllipse, Color.FromArgb(0xde, 0x64, 0x13), Color.White);
     mybuttons[2].Interior = new BrushInfo(PatternStyle.SmallCheckerBoard, Color.FromArgb(255, 187, 111), Color.White);              //.FromArgb( 0xff, 0xbf, 0x34 ));
 }
예제 #16
0
        public DropDownUserCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            this.ddUser         = ((DropDownUserCellModel)this.Model).ddUser;
            this.ddUser.Visible = false;
            DropDownPart        = new GridDropDownCellImp(this);
            DropDownButton      = new GridCellComboBoxButton(this);

            //hook the usercontrol save and cancel events...
            this.ddUser.UserControlSave   += new EventHandler(user_Save);
            this.ddUser.UserControlCancel += new EventHandler(user_Cancel);
        }
 public MultipleButtonCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     mybuttons = new MultipleButtonGridCell[2];
     for (int n = 0; n < 2; n++)
     {
         mybuttons[n] = new MultipleButtonGridCell(this);
         AddButton(mybuttons[n]);
     }
     mybuttons[0].Interior = new BrushInfo(GradientStyle.PathEllipse, Color.Blue, Color.White);
     mybuttons[0].Text     = "Button1";
     mybuttons[1].Interior = new BrushInfo(GradientStyle.PathEllipse, Color.Blue, Color.White);
     mybuttons[1].Text     = "Button2";
 }
예제 #18
0
        public DateTimeCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            dateTimePicker = new MyDateTimePicker();

            dateTimePicker.Format         = System.Windows.Forms.DateTimePickerFormat.Custom;
            dateTimePicker.ShowUpDown     = false;
            dateTimePicker.ShowCheckBox   = false;
            dateTimePicker.ShowDropButton = true;
            dateTimePicker.Border3DStyle  = Border3DStyle.Flat;

            grid.Controls.Add(dateTimePicker);

            //show & hide to make sure it is initilized properly for teh first use...
            dateTimePicker.Show();
            dateTimePicker.Hide();
            Grid.HScrollBar.ValueChanged += new EventHandler(HScrollBar_ValueChanged);
            Grid.VScrollBar.ValueChanged += new EventHandler(VScrollBar_ValueChanged);
        }
예제 #19
0
 public едакторЯчеек_ВыборИзСправочника_Renderer(GridControlBase grid, GridCellModelBase cellModel, ПараметрыСозданияРедактора_ВыборИзСправочника ПараметрыСозданияРедактора) : base(grid, cellModel)
 {
     this.параметрыСоздания      = null;
     this.drawВыборИзСправочника = new ВыборИзСправочника();
     this.editВыборИзСправочника = new ВыборИзСправочника();
     this.параметрыСоздания      = ПараметрыСозданияРедактора;
     this.drawВыборИзСправочника.ПоказыватьКнопкуРедактирования = false;
     this.drawВыборИзСправочника.НазначитьКнопки();
     this.editВыборИзСправочника.ПоказыватьКнопкуРедактирования = false;
     this.editВыборИзСправочника.НазначитьКнопки();
     if ((this.параметрыСоздания != null) && (this.параметрыСоздания.ОбработкаВыбораИзСправочника != null))
     {
         this.editВыборИзСправочника.ПриПолученииИсточникаЗаписейДляВыбора += this.параметрыСоздания.ОбработкаВыбораИзСправочника;
     }
     base.SupportsFocusControl = true;
     base.FixControlParent(this.drawВыборИзСправочника);
     base.SetControl(this.editВыборИзСправочника);
     this.editВыборИзСправочника.ПриИзмененииВыбранногоЭлемента = (ОбработчикСобытия)Delegate.Combine(this.editВыборИзСправочника.ПриИзмененииВыбранногоЭлемента, new ОбработчикСобытия(this.выборИзСправочника_ИзменениеВыбранногоОбъекта));
 }
예제 #20
0
 public CustomCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
 }
예제 #21
0
 public GridInCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     this.SupportsFocusControl = true;
 }
예제 #22
0
 public ImageCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
 }
예제 #23
0
 public LinkLabelCellRendererEx(GridControlBase grid, GridCellModelBase cellModel) : base(grid, cellModel)
 {
 }
예제 #24
0
 public GridComboBoxCellRendererEx(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     SupportsFocusControl = false;
 }
예제 #25
0
 public GridChartCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     chartControl = new GridChartControl(this);
 }
예제 #26
0
        public GridCellColorRenderer(Syncfusion.Windows.Forms.Grid.GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            TextBox.Visible = false;

            DropDownPart.InitFocusEditPart = false;
            DropDownPart.IgnoreFocus       = true;

            DropDownContainer.BorderStyle = BorderStyle.None;
        }
예제 #27
0
 public CustomControlCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     cm = (CustomControlCellModel)cellModel;
     SupportsFocusControl = true;
 }
예제 #28
0
 /// <summary>
 /// Initializes a new <see cref="OutlookHeaderCellRenderer"/> object.
 /// </summary>
 /// <param name="grid">Instance of gridcontrolbase.</param>
 /// <param name="cellModel">The cellmodel of this renderer.</param>
 public OutlookHeaderCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     this.gridBase        = grid;
     AddButton(pushButton = new GridCellButton(this));
 }
 public DropDownCalculatorTextBoxCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     DropDownPart   = new GridDropDownCellImp(this);
     DropDownButton = new GridCellComboBoxButton(this);
 }