コード例 #1
0
ファイル: DockWindow.cs プロジェクト: GodLesZ/svn-dump
		internal DockWindow(DockPanel dockPanel, DockState dockState) {
			m_nestedPanes = new NestedPaneCollection(this);
			m_dockPanel = dockPanel;
			m_dockState = dockState;
			Visible = false;

			SuspendLayout();

			if (DockState == DockState.DockLeft || DockState == DockState.DockRight ||
				DockState == DockState.DockTop || DockState == DockState.DockBottom) {
				m_splitter = new SplitterControl();
				Controls.Add(m_splitter);
			}

			if (DockState == DockState.DockLeft) {
				Dock = DockStyle.Left;
				m_splitter.Dock = DockStyle.Right;
			} else if (DockState == DockState.DockRight) {
				Dock = DockStyle.Right;
				m_splitter.Dock = DockStyle.Left;
			} else if (DockState == DockState.DockTop) {
				Dock = DockStyle.Top;
				m_splitter.Dock = DockStyle.Bottom;
			} else if (DockState == DockState.DockBottom) {
				Dock = DockStyle.Bottom;
				m_splitter.Dock = DockStyle.Top;
			} else if (DockState == DockState.Document) {
				Dock = DockStyle.Fill;
			}

			ResumeLayout();
		}
コード例 #2
0
			public AutoHideWindowControl(DockPanel dockPanel) {
				m_dockPanel = dockPanel;

				m_timerMouseTrack = new Timer();
				m_timerMouseTrack.Tick += new EventHandler(TimerMouseTrack_Tick);

				Visible = false;
				m_splitter = new SplitterControl(this);
				Controls.Add(m_splitter);
			}
コード例 #3
0
ファイル: DockPane.cs プロジェクト: RasterCode/OtterUI
        private void InternalConstruct(IDockContent content, DockState dockState, bool flagBounds, Rectangle floatWindowBounds, DockPane prevPane, DockAlignment alignment, double proportion, bool show)
        {
            if (dockState == DockState.Hidden || dockState == DockState.Unknown)
                throw new ArgumentException(Strings.DockPane_SetDockState_InvalidState);

            if (content == null)
                throw new ArgumentNullException(Strings.DockPane_Constructor_NullContent);

            if (content.DockHandler.DockPanel == null)
                throw new ArgumentException(Strings.DockPane_Constructor_NullDockPanel);

            SuspendLayout();
            SetStyle(ControlStyles.Selectable, false);

            m_isFloat = (dockState == DockState.Float);

            m_contents = new DockContentCollection();
            m_displayingContents = new DockContentCollection(this);
            m_dockPanel = content.DockHandler.DockPanel;
            m_dockPanel.AddPane(this);

            m_splitter = new SplitterControl(this);

            m_nestedDockingStatus = new NestedDockingStatus(this);

            m_captionControl = DockPanel.DockPaneCaptionFactory.CreateDockPaneCaption(this);
            m_tabStripControl = DockPanel.DockPaneStripFactory.CreateDockPaneStrip(this);
            Controls.AddRange(new Control[] {	m_captionControl, m_tabStripControl	});

            DockPanel.SuspendLayout(true);
            if (flagBounds)
                FloatWindow = DockPanel.FloatWindowFactory.CreateFloatWindow(DockPanel, this, floatWindowBounds);
            else if (prevPane != null)
                DockTo(prevPane.NestedPanesContainer, prevPane, alignment, proportion);

            SetDockState(dockState);
            if (show)
                content.DockHandler.Pane = this;
            else if (this.IsFloat)
                content.DockHandler.FloatPane = this;
            else
                content.DockHandler.PanelPane = this;

            ResumeLayout();
            DockPanel.ResumeLayout(true, true);
        }
コード例 #4
0
 public DefaultAutoHideWindowControl(DockPanel dockPanel)
     : base(dockPanel)
 {
     m_splitter = new SplitterControl(this);
     Controls.Add(m_splitter);
 }
コード例 #5
0
            public AutoHideWindowControl(DockPanel dockPanel)
            {
                this._mDockPanel = dockPanel;

                this._mTimerMouseTrack = new Timer();
                this._mTimerMouseTrack.Tick += this.TimerMouseTrack_Tick;

                Visible = false;
                this._mSplitter = new SplitterControl(this);
                Controls.Add(this._mSplitter);
            }
コード例 #6
0
            public AutoHideWindowControl(DockPanel dockPanel)
            {
                FlagAnimate = true;
                m_dockPanel = dockPanel;

                m_timerMouseTrack = new Timer();
                m_timerMouseTrack.Tick += TimerMouseTrack_Tick;

                Visible = false;
                m_splitter = new SplitterControl(this);
                Controls.Add(m_splitter);
            }
コード例 #7
0
 /// <summary>
 ///    Required method for Designer support - do not modify
 ///    the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo1 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.splitterControl1 = new Syncfusion.Windows.Forms.SplitterControl();
     this.grid1            = new SampleGrid();
     this.components       = new Container();
     this.splitterControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // splitterControl1
     //
     this.splitterControl1.Controls.Add(this.grid1);
     this.splitterControl1.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.splitterControl1.Location             = new System.Drawing.Point(0, 0);
     this.splitterControl1.Name                 = "splitterControl1";
     this.splitterControl1.ShowToolTips         = true;
     this.splitterControl1.Size                 = new System.Drawing.Size(284, 262);
     this.splitterControl1.SplitBars            = ((Syncfusion.Windows.Forms.DynamicSplitBars)((Syncfusion.Windows.Forms.DynamicSplitBars.SplitRows | Syncfusion.Windows.Forms.DynamicSplitBars.SplitColumns)));
     this.splitterControl1.TabIndex             = 0;
     this.splitterControl1.ThemesEnabled        = true;
     this.splitterControl1.GridOfficeScrollBars = OfficeScrollBars.Metro;
     //
     // grid1
     //
     this.grid1.AllowDragSelectedCols = true;
     this.grid1.AllowDragSelectedRows = true;
     this.grid1.BackColor             = System.Drawing.Color.White;
     this.grid1.ColCount                = 0;
     this.grid1.DefaultColWidth         = 0;
     this.grid1.DefaultGridBorderStyle  = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.grid1.DefaultRowHeight        = 0;
     this.grid1.ExcelLikeCurrentCell    = true;
     this.grid1.ExcelLikeSelectionFrame = true;
     this.grid1.FillSplitterPane        = true;
     this.grid1.Font      = new System.Drawing.Font("Verdana", 8.25F);
     this.grid1.ForeColor = System.Drawing.SystemColors.WindowText;
     gridCellInfo1.Col    = -1;
     gridCellInfo1.Row    = -1;
     gridCellInfo1.StyleInfo.Font.Facename = "Verdana";
     gridCellInfo1.StyleInfo.TextColor     = System.Drawing.Color.MidnightBlue;
     this.grid1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo1
     });
     this.grid1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.grid1.HorizontalScrollTips = true;
     this.grid1.HorizontalThumbTrack = true;
     this.grid1.Location             = new System.Drawing.Point(0, 0);
     this.grid1.Name = "grid1";
     this.grid1.Properties.GridLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
     this.grid1.RowCount           = 0;
     this.grid1.Size               = new System.Drawing.Size(263, 241);
     this.grid1.SmartSizeBox       = false;
     this.grid1.ThemesEnabled      = true;
     this.grid1.VerticalScrollTips = true;
     //
     // SplitterFrame
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.CausesValidation    = false;
     this.ClientSize          = new System.Drawing.Size(284, 262);
     this.Controls.Add(this.splitterControl1);
     this.Name = "SplitterFrame";
     this.Text = "Grid Splitter";
     this.splitterControl1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #8
0
        private void InternalConstruct(IDockContent content, DockState dockState, bool flagBounds, Rectangle floatWindowBounds, DockPane prevPane, DockAlignment alignment, double proportion, bool show)
        {
            if (dockState == DockState.Hidden || dockState == DockState.Unknown)
            {
                throw new ArgumentException(Strings.DockPane_SetDockState_InvalidState);
            }

            if (content == null)
            {
                throw new ArgumentNullException(Strings.DockPane_Constructor_NullContent);
            }

            if (content.DockHandler.DockPanel == null)
            {
                throw new ArgumentException(Strings.DockPane_Constructor_NullDockPanel);
            }


            SuspendLayout();
            SetStyle(ControlStyles.Selectable, false);

            m_isFloat = (dockState == DockState.Float);

            m_contents           = new DockContentCollection();
            m_displayingContents = new DockContentCollection(this);
            m_dockPanel          = content.DockHandler.DockPanel;
            m_dockPanel.AddPane(this);

            m_splitter = new SplitterControl(this);

            m_nestedDockingStatus = new NestedDockingStatus(this);

            m_captionControl  = DockPanel.DockPaneCaptionFactory.CreateDockPaneCaption(this);
            m_tabStripControl = DockPanel.DockPaneStripFactory.CreateDockPaneStrip(this);
            Controls.AddRange(new Control[] { m_captionControl, m_tabStripControl });

            DockPanel.SuspendLayout(true);
            if (flagBounds)
            {
                FloatWindow = DockPanel.FloatWindowFactory.CreateFloatWindow(DockPanel, this, floatWindowBounds);
            }
            else if (prevPane != null)
            {
                DockTo(prevPane.NestedPanesContainer, prevPane, alignment, proportion);
            }

            SetDockState(dockState);
            if (show)
            {
                content.DockHandler.Pane = this;
            }
            else if (this.IsFloat)
            {
                content.DockHandler.FloatPane = this;
            }
            else
            {
                content.DockHandler.PanelPane = this;
            }

            ResumeLayout();
            DockPanel.ResumeLayout(true, true);
        }
コード例 #9
0
ファイル: Form1.cs プロジェクト: pizsa44/winforms-demos
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle9  = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle10 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle11 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle12 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridCellInfo  gridCellInfo5   = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.printPreviewButton    = new Syncfusion.Windows.Forms.ButtonAdv();
     this.propertyGrid1         = new System.Windows.Forms.PropertyGrid();
     this.output                = new System.Windows.Forms.ListBox();
     this.checkBoxMouseMessage  = new System.Windows.Forms.CheckBox();
     this.checkBoxEnableTracing = new System.Windows.Forms.CheckBox();
     this.contextMenu1          = new System.Windows.Forms.ContextMenu();
     this.menuItem1             = new System.Windows.Forms.MenuItem();
     this.panel2                = new System.Windows.Forms.Panel();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.panel1                = new System.Windows.Forms.Panel();
     this.splitterControl1      = new Syncfusion.Windows.Forms.SplitterControl();
     this.gridControl1          = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.panel2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.splitterControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.SuspendLayout();
     //
     // printPreviewButton
     //
     this.printPreviewButton.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.printPreviewButton.Appearance        = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.printPreviewButton.FlatStyle         = FlatStyle.Flat;
     this.printPreviewButton.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
     this.printPreviewButton.BeforeTouchSize   = new System.Drawing.Size(165, 34);
     this.printPreviewButton.BorderStyleAdv    = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner;
     this.printPreviewButton.Font              = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.printPreviewButton.ForeColor         = System.Drawing.Color.White;
     this.printPreviewButton.ImageAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.printPreviewButton.IsBackStageButton = false;
     this.printPreviewButton.Location          = new System.Drawing.Point(684, 527);
     this.printPreviewButton.Name              = "printPreviewButton";
     this.printPreviewButton.Size              = new System.Drawing.Size(165, 34);
     this.printPreviewButton.TabIndex          = 9;
     this.printPreviewButton.Text              = "Print Preview";
     this.printPreviewButton.Click            += new System.EventHandler(this.printPreviewButton_Click);
     //
     // propertyGrid1
     //
     this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGrid1.BackColor         = System.Drawing.Color.White;
     this.propertyGrid1.CommandsBackColor = System.Drawing.Color.White;
     this.propertyGrid1.CommandsLinkColor = System.Drawing.Color.White;
     this.propertyGrid1.HelpBackColor     = System.Drawing.Color.White;
     this.propertyGrid1.LineColor         = System.Drawing.SystemColors.Window;
     this.propertyGrid1.Location          = new System.Drawing.Point(651, 0);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(263, 342);
     this.propertyGrid1.TabIndex = 2;
     //
     // output
     //
     this.output.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.output.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     //  this.output.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(84)))));
     this.output.Location            = new System.Drawing.Point(9, 16);
     this.output.Name                = "output";
     this.output.ScrollAlwaysVisible = true;
     this.output.Size                = new System.Drawing.Size(612, 171);
     this.output.TabIndex            = 4;
     //
     // checkBoxMouseMessage
     //
     this.checkBoxMouseMessage.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.checkBoxMouseMessage.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkBoxMouseMessage.Font            = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBoxMouseMessage.Location        = new System.Drawing.Point(62, 62);
     this.checkBoxMouseMessage.Name            = "checkBoxMouseMessage";
     this.checkBoxMouseMessage.Size            = new System.Drawing.Size(165, 33);
     this.checkBoxMouseMessage.TabIndex        = 8;
     this.checkBoxMouseMessage.Text            = "Trace Mouse and Control Messages";
     this.checkBoxMouseMessage.CheckedChanged += new System.EventHandler(this.checkBoxMouseMessage_CheckedChanged);
     //
     // checkBoxEnableTracing
     //
     this.checkBoxEnableTracing.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.checkBoxEnableTracing.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkBoxEnableTracing.Font            = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBoxEnableTracing.Location        = new System.Drawing.Point(62, 36);
     this.checkBoxEnableTracing.Name            = "checkBoxEnableTracing";
     this.checkBoxEnableTracing.Size            = new System.Drawing.Size(183, 20);
     this.checkBoxEnableTracing.TabIndex        = 7;
     this.checkBoxEnableTracing.Text            = "Enable Tracing";
     this.checkBoxEnableTracing.CheckedChanged += new System.EventHandler(this.checkBoxEnableTracing_CheckedChanged);
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "&Clear Window";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // panel2
     //
     this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel2.BackColor = System.Drawing.Color.White;
     this.panel2.Controls.Add(this.output);
     this.panel2.Location = new System.Drawing.Point(0, 363);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(640, 210);
     this.panel2.TabIndex = 9;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.checkBoxEnableTracing);
     this.groupBox1.Controls.Add(this.checkBoxMouseMessage);
     this.groupBox1.Location = new System.Drawing.Point(651, 379);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(263, 129);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Event trace Options";
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.BackColor = System.Drawing.Color.White;
     this.panel1.Controls.Add(this.splitterControl1);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(640, 342);
     this.panel1.TabIndex = 8;
     //
     // splitterControl1
     //
     this.splitterControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.splitterControl1.BackColor       = System.Drawing.Color.White;
     this.splitterControl1.BeforeTouchSize = new System.Drawing.Size(626, 339);
     this.splitterControl1.BorderStyle     = System.Windows.Forms.BorderStyle.None;
     this.splitterControl1.Controls.Add(this.gridControl1);
     this.splitterControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.splitterControl1.Location             = new System.Drawing.Point(12, 0);
     this.splitterControl1.Name          = "splitterControl1";
     this.splitterControl1.Size          = new System.Drawing.Size(626, 339);
     this.splitterControl1.SizeFactor    = 0D;
     this.splitterControl1.SplitBars     = ((Syncfusion.Windows.Forms.DynamicSplitBars)((Syncfusion.Windows.Forms.DynamicSplitBars.SplitRows | Syncfusion.Windows.Forms.DynamicSplitBars.SplitColumns)));
     this.splitterControl1.TabIndex      = 6;
     this.splitterControl1.ThemesEnabled = true;
     this.splitterControl1.PaneCreated  += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneCreated);
     this.splitterControl1.PaneClosing  += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneClosing);
     //
     // gridControl1
     //
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     gridBaseStyle9.Name = "Header";
     gridBaseStyle9.StyleInfo.Borders.Bottom    = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Left      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Right     = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Top       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.CellType          = "Header";
     gridBaseStyle9.StyleInfo.Font.Bold         = true;
     gridBaseStyle9.StyleInfo.Interior          = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     gridBaseStyle9.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
     gridBaseStyle10.Name = "Standard";
     gridBaseStyle10.StyleInfo.Font.Facename = "Tahoma";
     gridBaseStyle10.StyleInfo.Interior      = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);
     gridBaseStyle11.Name = "Column Header";
     gridBaseStyle11.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle11.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;
     gridBaseStyle12.Name = "Row Header";
     gridBaseStyle12.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle12.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;
     gridBaseStyle12.StyleInfo.Interior            = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     this.gridControl1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] {
         gridBaseStyle9,
         gridBaseStyle10,
         gridBaseStyle11,
         gridBaseStyle12
     });
     this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount    = 12;
     this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {
         new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35)
     });
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.DefaultRowHeight       = 20;
     this.gridControl1.FillSplitterPane       = true;
     this.gridControl1.Font                 = new System.Drawing.Font("Segoe UI", 8.5F);
     this.gridControl1.ForeColor            = System.Drawing.Color.MidnightBlue;
     gridCellInfo5.Col                      = -1;
     gridCellInfo5.Row                      = -1;
     gridCellInfo5.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo5.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo5.StyleInfo.Font.Bold      = false;
     gridCellInfo5.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo5.StyleInfo.Font.Italic    = false;
     gridCellInfo5.StyleInfo.Font.Size      = 8.5F;
     gridCellInfo5.StyleInfo.Font.Strikeout = false;
     gridCellInfo5.StyleInfo.Font.Underline = false;
     gridCellInfo5.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo5.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo5.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo5
     });
     this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.HorizontalThumbTrack = true;
     this.gridControl1.Location             = new System.Drawing.Point(0, 0);
     this.gridControl1.MetroScrollBars      = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.BackgroundColor       = System.Drawing.Color.White;
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.gridControl1.RowCount    = 120;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21)
     });
     this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeIntoCode;
     this.gridControl1.Size               = new System.Drawing.Size(609, 322);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.ThemesEnabled      = true;
     this.gridControl1.VerticalThumbTrack = true;
     this.gridControl1.SelectionChanged  += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.grid_SelectionChanged);
     this.gridControl1.CurrentCellMoved  += new Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventHandler(this.grid_CurrentCellMoved);
     //
     // Form1
     //
     this.ClientSize = new System.Drawing.Size(926, 573);
     this.Controls.Add(this.printPreviewButton);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.panel2);
     this.MinimumSize = new System.Drawing.Size(500, 500);
     this.Name        = "Form1";
     this.Text        = "Web Browser Cell ";
     this.panel2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.splitterControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #10
0
        private void Init_MT35()
        {
            MT35          = new DataMasterDetail("DT35", "7");
            designer_MT35 = new FormDesigner(MT35);
            if (Tungay == null || Denngay == null)
            {
                return;
            }
            if (MT35.DsData == null)
            {
                GetData_MT35();
            }
            gc_MT35 = designer_MT35.GenGridControl(MT35.DsStruct.Tables[0], false, DockStyle.Fill);
            gv_MT35 = gc_MT35.ViewCollection[0] as DevExpress.XtraGrid.Views.Grid.GridView;
            gv_MT35.OptionsView.ShowDetailButtons = false;
            gv_MT35.OptionsBehavior.Editable      = true;
            gv_MT35.OptionsBehavior.ReadOnly      = true;
            //foreach (GridColumn gc in gv_MT35.Columns)
            //{
            //    if (gc.ColumnEdit != null && (gc.ColumnEdit as CDTRepGridLookup) != null)
            //    {
            //        foreach (EditorButton b in (gc.ColumnEdit as CDTRepGridLookup).Buttons)
            //            if (b.Kind == ButtonPredefines.Plus) b.Visible = false;
            //    }
            //}
            pOrder.Controls.Add(gc_MT35);
            SplitterControl spc = new SplitterControl();

            spc.Dock = DockStyle.Bottom;
            pOrder.Controls.Add(spc);
            gc_DT35 = designer_MT35.GenGridControl(MT35.DsStruct.Tables[1], false, DockStyle.Bottom);
            gv_DT35 = gc_DT35.ViewCollection[0] as DevExpress.XtraGrid.Views.Grid.GridView;
            gv_DT35.OptionsBehavior.Editable      = true;
            gv_DT35.OptionsBehavior.ReadOnly      = true;
            gv_DT35.OptionsView.ShowFooter        = false;
            gv_DT35.OptionsView.ShowGroupPanel    = false;
            gv_DT35.OptionsView.ShowDetailButtons = false;
            //foreach (GridColumn gc in gvDegv_DT35tail.Columns)
            //{
            //    if (gc.ColumnEdit != null && (gc.ColumnEdit as CDTRepGridLookup) != null)
            //    {
            //        foreach (EditorButton b in (gc.ColumnEdit as CDTRepGridLookup).Buttons)
            //            if (b.Kind == ButtonPredefines.Plus) b.Visible = false;
            //    }
            //}
            pOrder.Controls.Add(gc_DT35);
            try
            {
                int i = MT35.DsData.Tables[0].Rows.IndexOf(MT35.DrCurrentMaster);
                i = gv_MT35.GetRowHandle(i);
                if (!gv_MT35.IsGroupRow(i))
                {
                    RowGroup_MT35 = gv_MT35.GetParentRowHandle(i);
                }
            }
            catch { }
            foreach (DevExpress.XtraGrid.Columns.GridColumn col in gv_MT35.Columns)
            {
                if (col.FieldName.ToUpper() == "TASKID")
                {
                    DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox repTask = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
                    this.gc_MT35.RepositoryItems.Add(repTask);

                    repTask.AutoHeight     = false;
                    repTask.GlyphAlignment = DevExpress.Utils.HorzAlignment.Center;
                    if (MT35.tbTask != null)
                    {
                        for (int i = 0; i < MT35.tbTask.Rows.Count; i++)
                        {
                            DataRow drTask = MT35.tbTask.Rows[i];
                            if (drTask["Icon"] != DBNull.Value)
                            {
                                if (imageList_Order == null)
                                {
                                    imageList_Order = new ImageList();
                                }
                                this.imageList_Order.Images.Add(GetImage(drTask["Icon"] as byte[]));
                                repTask.Items.AddRange(new DevExpress.XtraEditors.Controls.ImageComboBoxItem[] {
                                    new DevExpress.XtraEditors.Controls.ImageComboBoxItem(drTask["TaskLabel"].ToString(), drTask["ID"], repTask.Items.Count)
                                });
                            }
                        }
                    }
                    repTask.SmallImages = this.imageList_Order;

                    col.ColumnEdit = repTask;
                    col.Caption    = "";
                }
            }
        }
コード例 #11
0
 public DefaultAutoHideWindowControl(DockPanel dockPanel) : base(dockPanel)
 {
     MSplitter = new SplitterControl(this);
     Controls.Add(MSplitter);
 }
コード例 #12
0
ファイル: InitializeLayout.cs プロジェクト: dvmu/MyRapid
        private void InitializeLayout()
        {
            try
            {
                if (this.GetType() != typeof(ChildPage))
                {
                    return;
                }
                if (this.QueryControl != null)
                {
                    return;
                }
                List <MyParameter> myParameter = new List <MyParameter>();
                myParameter.Add("@Menu_Id", DbType.String, SysPage.Menu_Id, null);
                DataTable         dt          = BaseService.Open("SystemMenu_Layout", myParameter);
                List <Sys_Layout> sys_Layouts = EntityHelper.GetEntities <Sys_Layout>(dt);
                if (sys_Layouts.Count.Equals(0))
                {
                    return;
                }
                Control parentControl = this;
                foreach (Sys_Layout sys_Layout in sys_Layouts.OrderBy(s => s.Layout_Sort))
                {
                    Control contain = parentControl;
                    if (!string.IsNullOrEmpty(sys_Layout.Layout_Parent))
                    {
                        Control[] cks = parentControl.Controls.Find(sys_Layout.Layout_Parent, true);
                        if (cks.Length > 0)
                        {
                            contain = cks[0];
                        }
                    }
                    switch (sys_Layout.Layout_Type)
                    {
                    case 0:     //Query
                        GroupControl qry = new GroupControl();
                        InitializeControl(qry, sys_Layout);
                        contain.Controls.Add(qry);
                        qry.BringToFront();
                        this.QueryControl = qry;
                        break;

                    case 12:     //GroupControl
                        GroupControl grp = new GroupControl();
                        InitializeControl(grp, sys_Layout);
                        contain.Controls.Add(grp);
                        grp.BringToFront();
                        break;

                    case 13:
                        SplitterControl OneSpli = new SplitterControl();
                        OneSpli.Dock = (DockStyle)sys_Layout.Layout_Dock;
                        OneSpli.Name = sys_Layout.Layout_Name;
                        contain.Controls.Add(OneSpli);
                        OneSpli.BringToFront();
                        break;

                    case 14:     //PanelControl
                        PanelControl panel = new PanelControl();
                        InitializeControl(panel, sys_Layout);
                        contain.Controls.Add(panel);
                        panel.BorderStyle = BorderStyles.NoBorder;
                        panel.BringToFront();
                        break;

                    case 1:     //Grid
                    case 6:     //Submit
                    case 7:     //Tree    这三个都只有Grid 是在Grid上覆盖控件实现 Submit  和  Tree 效果
                        GridControl gd = new GridControl();
                        InitializeControl(gd, sys_Layout);
                        GridView gv = (GridView)gd.CreateView("GridView");
                        gv.BorderStyle = BorderStyles.NoBorder;
                        gv.Name        = gd.Name.Replace("d", "v");
                        gv.OptionsView.ShowGroupPanel   = false;
                        gv.OptionsView.ShowFooter       = true;
                        gv.OptionsSelection.MultiSelect = true;
                        gd.MainView = gv;
                        contain.Controls.Add(gd);
                        gd.BringToFront();
                        break;

                    case 9:     //TabPage  窗体验证时候devexpress原装的XtraTabControl 不支持验证需要自行继承扩展
                        TabEx ntabs = new TabEx();
                        InitializeControl(ntabs, sys_Layout);
                        ntabs.BorderStyle     = BorderStyles.NoBorder;
                        ntabs.BorderStylePage = BorderStyles.NoBorder;
                        contain.Controls.Add(ntabs);
                        ntabs.BringToFront();
                        break;

                    case 10:
                        DevExpress.XtraTab.XtraTabPage tab = new DevExpress.XtraTab.XtraTabPage();
                        tab.Name = sys_Layout.Layout_Name;
                        tab.Text = sys_Layout.Layout_Nick;
                        if (contain.GetType() == typeof(TabEx))
                        {
                            TabEx tabs = (TabEx)contain;
                            tabs.TabPages.Add(tab);
                        }
                        break;

                    case 11:
                        Pagination pagination = new Pagination();
                        pagination.Name = sys_Layout.Layout_Name;
                        pagination.Dock = (DockStyle)sys_Layout.Layout_Dock;
                        contain.Controls.Add(pagination);
                        pagination.BringToFront();
                        break;

                    case 2:     //Chart
                        ChartControl chart = new ChartControl();
                        InitializeControl(chart, sys_Layout);
                        chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
                        contain.Controls.Add(chart);
                        chart.BringToFront();
                        break;

                    case 3:    //text
                        MemoEdit memoEdit = new MemoEdit();
                        InitializeControl(memoEdit, sys_Layout);
                        memoEdit.BorderStyle = BorderStyles.NoBorder;
                        contain.Controls.Add(memoEdit);
                        memoEdit.BringToFront();
                        break;

                    case 4:    //RichText
                        RichEditControl rtf = new RichEditControl();
                        InitializeControl(rtf, sys_Layout);
                        rtf.BorderStyle    = BorderStyles.NoBorder;
                        rtf.ActiveViewType = RichEditViewType.Simple;
                        contain.Controls.Add(rtf);
                        rtf.BringToFront();
                        break;

                    case 5:     //image
                        PictureEdit pictureEdit = new PictureEdit();
                        InitializeControl(pictureEdit, sys_Layout);
                        pictureEdit.BorderStyle = BorderStyles.NoBorder;
                        pictureEdit.Properties.PictureStoreMode = PictureStoreMode.ByteArray;
                        pictureEdit.Properties.SizeMode         = PictureSizeMode.Squeeze;
                        contain.Controls.Add(pictureEdit);
                        pictureEdit.BringToFront();
                        break;

                    case 8:     //BarCode
                        BarCodeControl barCodeControl = new BarCodeControl();
                        InitializeControl(barCodeControl, sys_Layout);
                        barCodeControl.BorderStyle = BorderStyles.NoBorder;
                        barCodeControl.BackColor   = Color.White;
                        barCodeControl.AutoModule  = true;
                        barCodeControl.ShowText    = false;
                        //QRCodeGenerator
                        DevExpress.XtraPrinting.BarCode.QRCodeGenerator qrCodeGenerator1 = new DevExpress.XtraPrinting.BarCode.QRCodeGenerator();
                        qrCodeGenerator1.CompactionMode       = DevExpress.XtraPrinting.BarCode.QRCodeCompactionMode.Byte;
                        qrCodeGenerator1.ErrorCorrectionLevel = DevExpress.XtraPrinting.BarCode.QRCodeErrorCorrectionLevel.H;
                        qrCodeGenerator1.Version = DevExpress.XtraPrinting.BarCode.QRCodeVersion.Version1;
                        //Code128Generator
                        DevExpress.XtraPrinting.BarCode.Code128Generator code128Generator1 = new DevExpress.XtraPrinting.BarCode.Code128Generator();
                        //根据长宽比切换二维码 条码显示
                        if (barCodeControl.Width > barCodeControl.Height * 2)
                        {
                            barCodeControl.Symbology = code128Generator1;
                        }
                        else
                        {
                            barCodeControl.Symbology = qrCodeGenerator1;
                        }
                        contain.Controls.Add(barCodeControl);
                        barCodeControl.BringToFront();
                        break;

                    default:
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                SharedFunc.RaiseError(ex);
            }
        }
コード例 #13
0
 private void InitializeComponent()
 {
     this.components                   = (IContainer) new Container();
     this.ds                           = new ds_advertising();
     this.atButtonsPanel1              = new atButtonsPanel();
     this.AtTreeListControl            = new AtTreeListControl();
     this.splitterControl1             = new SplitterControl();
     this.gridControlAdvertisingAction = new GridControl();
     this.MenuItem                     = new ContextMenuStrip(this.components);
     this.MenuItemAdd                  = new ToolStripMenuItem();
     this.MenuItemDoublicate           = new ToolStripMenuItem();
     this.toolStripSeparator1          = new ToolStripSeparator();
     this.MenuItemRemove               = new ToolStripMenuItem();
     this.toolStripSeparator2          = new ToolStripSeparator();
     this.MenuItemMoveToGroup          = new ToolStripMenuItem();
     this.gridViewAdvertisingAction    = new GridView();
     this.colidadvertisingaction       = new GridColumn();
     this.colname                      = new GridColumn();
     this.coldtstart                   = new GridColumn();
     this.coldtfinish                  = new GridColumn();
     this.colperc                      = new GridColumn();
     this.CalcEditSum                  = new RepositoryItemCalcEdit();
     this.colsm                        = new GridColumn();
     this.colcomment                   = new GridColumn();
     this.colvalut_shortname           = new GridColumn();
     this.cboValut                     = new RepositoryItemComboBox();
     this.colisactive                  = new GridColumn();
     this.ds.BeginInit();
     this.atButtonsPanel1.BeginInit();
     this.AtTreeListControl.BeginInit();
     this.gridControlAdvertisingAction.BeginInit();
     this.MenuItem.SuspendLayout();
     this.gridViewAdvertisingAction.BeginInit();
     this.CalcEditSum.BeginInit();
     this.cboValut.BeginInit();
     this.SuspendLayout();
     this.ds.DataSetName                                                     = "ds_advertising";
     this.ds.SchemaSerializationMode                                         = SchemaSerializationMode.IncludeSchema;
     this.atButtonsPanel1.AcceptButton                                       = atButtonsPanel.bpButtons.Save;
     this.atButtonsPanel1.CancelButton                                       = atButtonsPanel.bpButtons.Cancel;
     this.atButtonsPanel1.CancelButtonText                                   = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect                        = true;
     this.atButtonsPanel1.CancelButtonVisible                                = true;
     this.atButtonsPanel1.CloseButtonText                                    = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect                         = false;
     this.atButtonsPanel1.CloseButtonVisible                                 = false;
     this.atButtonsPanel1.DataMember                                         = (string)null;
     this.atButtonsPanel1.DataSource                                         = (DataSet)null;
     this.atButtonsPanel1.Dock                                               = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton                                = true;
     this.atButtonsPanel1.EnabledCloseButton                                 = true;
     this.atButtonsPanel1.EnabledPrintButton                                 = true;
     this.atButtonsPanel1.EnabledRefreshButton                               = true;
     this.atButtonsPanel1.EnabledSaveButton                                  = true;
     this.atButtonsPanel1.EnabledScriptButton                                = true;
     this.atButtonsPanel1.IdDocAppearance                                    = 0;
     this.atButtonsPanel1.Location                                           = new Point(0, 319);
     this.atButtonsPanel1.Name                                               = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText                                    = "";
     this.atButtonsPanel1.PrintButtonVisible                                 = false;
     this.atButtonsPanel1.ProcessedIsDialog                                  = true;
     this.atButtonsPanel1.RefreshButtonText                                  = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem                         = true;
     this.atButtonsPanel1.RefreshButtonVisible                               = false;
     this.atButtonsPanel1.SaveButtonText                                     = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem                            = true;
     this.atButtonsPanel1.SaveButtonVisible                                  = true;
     this.atButtonsPanel1.ScriptButtonText                                   = "";
     this.atButtonsPanel1.ScriptButtonVisible                                = false;
     this.atButtonsPanel1.Size                                               = new Size(778, 33);
     this.atButtonsPanel1.TabIndex                                           = 3;
     this.atButtonsPanel1.TextCancelButton                                   = "Отменить";
     this.atButtonsPanel1.TextCloseButton                                    = "Закрыть";
     this.atButtonsPanel1.TextPrintButton                                    = "Печать...";
     this.atButtonsPanel1.TextRefreshButton                                  = "Обновить";
     this.atButtonsPanel1.TextSaveButton                                     = "Применить";
     this.atButtonsPanel1.TextScriptButton                                   = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton                                = true;
     this.atButtonsPanel1.VisibleCloseButton                                 = true;
     this.atButtonsPanel1.VisiblePrintButton                                 = false;
     this.atButtonsPanel1.VisibleRefreshButton                               = false;
     this.atButtonsPanel1.VisibleSaveButton                                  = true;
     this.atButtonsPanel1.VisibleScriptButton                                = false;
     this.atButtonsPanel1.WidthPrintButton                                   = 75;
     this.AtTreeListControl.Appearance.FocusedCell.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.FocusedCell.ForeColor                 = Color.Black;
     this.AtTreeListControl.Appearance.FocusedCell.Options.UseBackColor      = true;
     this.AtTreeListControl.Appearance.FocusedCell.Options.UseForeColor      = true;
     this.AtTreeListControl.Appearance.FocusedRow.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.FocusedRow.ForeColor                  = Color.Black;
     this.AtTreeListControl.Appearance.FocusedRow.Options.UseBackColor       = true;
     this.AtTreeListControl.Appearance.FocusedRow.Options.UseForeColor       = true;
     this.AtTreeListControl.Appearance.HideSelectionRow.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.HideSelectionRow.BackColor2           = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.HideSelectionRow.ForeColor            = Color.Black;
     this.AtTreeListControl.Appearance.HideSelectionRow.Options.UseBackColor = true;
     this.AtTreeListControl.Appearance.HideSelectionRow.Options.UseForeColor = true;
     this.AtTreeListControl.Appearance.SelectedRow.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.SelectedRow.ForeColor                 = Color.Black;
     this.AtTreeListControl.Appearance.SelectedRow.Options.UseBackColor      = true;
     this.AtTreeListControl.Appearance.SelectedRow.Options.UseForeColor      = true;
     this.AtTreeListControl.BorderStyle                                      = BorderStyles.Simple;
     this.AtTreeListControl.ColumnText                                       = "Группы акций";
     this.AtTreeListControl.Connection                                       = (dbconn)null;
     this.AtTreeListControl.DataMember                                       = "advertisingactiongroup";
     this.AtTreeListControl.DataRelation                                     = "advertisingactiongroup.FK_advertisingactiongroup_advertisingaction";
     this.AtTreeListControl.DataSource                                       = (object)this.ds;
     this.AtTreeListControl.Dock                                             = DockStyle.Left;
     this.AtTreeListControl.HorzScrollVisibility                             = DevExpress.XtraTreeList.ScrollVisibility.Never;
     this.AtTreeListControl.ImageIndexFieldName                              = "_imageindex";
     this.AtTreeListControl.IsSupportFilter                                  = false;
     this.AtTreeListControl.KeyFieldName                                     = "idadvertisingactiongroup";
     this.AtTreeListControl.Location                                         = new Point(0, 0);
     this.AtTreeListControl.LookAndFeel.Style                                = LookAndFeelStyle.Flat;
     this.AtTreeListControl.LookAndFeel.UseDefaultLookAndFeel                = false;
     this.AtTreeListControl.MoveItems                                        = (DataRow[])null;
     this.AtTreeListControl.Name                                             = "AtTreeListControl";
     this.AtTreeListControl.OptionsBehavior.AutoFocusNewNode                 = true;
     this.AtTreeListControl.OptionsView.ShowHorzLines                        = false;
     this.AtTreeListControl.OptionsView.ShowIndicator                        = false;
     this.AtTreeListControl.OptionsView.ShowVertLines                        = false;
     this.AtTreeListControl.ParentFieldName                                  = "parentid";
     this.AtTreeListControl.PrimaryKeyName                                   = "idadvertisingactiongroup";
     this.AtTreeListControl.Size                                             = new Size(215, 319);
     this.AtTreeListControl.TabIndex                                         = 0;
     this.splitterControl1.Location                                          = new Point(215, 0);
     this.splitterControl1.Name                                              = "splitterControl1";
     this.splitterControl1.Size                                              = new Size(6, 319);
     this.splitterControl1.TabIndex                                          = 1;
     this.splitterControl1.TabStop                                           = false;
     this.gridControlAdvertisingAction.ContextMenuStrip                      = this.MenuItem;
     this.gridControlAdvertisingAction.DataMember                            = "advertisingactiongroup.FK_advertisingactiongroup_advertisingaction";
     this.gridControlAdvertisingAction.DataSource                            = (object)this.ds;
     this.gridControlAdvertisingAction.Dock                                  = DockStyle.Fill;
     this.gridControlAdvertisingAction.EmbeddedNavigator.Name                = "";
     this.gridControlAdvertisingAction.Location                              = new Point(221, 0);
     this.gridControlAdvertisingAction.LookAndFeel.Style                     = LookAndFeelStyle.Flat;
     this.gridControlAdvertisingAction.LookAndFeel.UseDefaultLookAndFeel     = false;
     this.gridControlAdvertisingAction.MainView                              = (BaseView)this.gridViewAdvertisingAction;
     this.gridControlAdvertisingAction.Name                                  = "gridControlAdvertisingAction";
     this.gridControlAdvertisingAction.RepositoryItems.AddRange(new RepositoryItem[2]
     {
         (RepositoryItem)this.cboValut,
         (RepositoryItem)this.CalcEditSum
     });
     this.gridControlAdvertisingAction.Size     = new Size(557, 319);
     this.gridControlAdvertisingAction.TabIndex = 2;
     this.gridControlAdvertisingAction.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewAdvertisingAction
     });
     this.MenuItem.Items.AddRange(new ToolStripItem[6]
     {
         (ToolStripItem)this.MenuItemAdd,
         (ToolStripItem)this.MenuItemDoublicate,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.MenuItemRemove,
         (ToolStripItem)this.toolStripSeparator2,
         (ToolStripItem)this.MenuItemMoveToGroup
     });
     this.MenuItem.Name                    = "MenuItem";
     this.MenuItem.Size                    = new Size(228, 104);
     this.MenuItemAdd.Name                 = "MenuItemAdd";
     this.MenuItemAdd.ShortcutKeys         = Keys.Insert | Keys.Control;
     this.MenuItemAdd.Size                 = new Size(227, 22);
     this.MenuItemAdd.Text                 = "Добавить";
     this.MenuItemAdd.Click               += new EventHandler(this.MenuItemAdd_Click);
     this.MenuItemDoublicate.Name          = "MenuItemDoublicate";
     this.MenuItemDoublicate.ShortcutKeys  = Keys.Insert | Keys.Shift | Keys.Control;
     this.MenuItemDoublicate.Size          = new Size(227, 22);
     this.MenuItemDoublicate.Text          = "Дублировать";
     this.MenuItemDoublicate.Click        += new EventHandler(this.MenuItemDoublicate_Click);
     this.toolStripSeparator1.Name         = "toolStripSeparator1";
     this.toolStripSeparator1.Size         = new Size(224, 6);
     this.MenuItemRemove.Name              = "MenuItemRemove";
     this.MenuItemRemove.ShortcutKeys      = Keys.Delete | Keys.Control;
     this.MenuItemRemove.Size              = new Size(227, 22);
     this.MenuItemRemove.Text              = "Удалить";
     this.MenuItemRemove.Click            += new EventHandler(this.MenuItemRemove_Click);
     this.toolStripSeparator2.Name         = "toolStripSeparator2";
     this.toolStripSeparator2.Size         = new Size(224, 6);
     this.MenuItemMoveToGroup.Name         = "MenuItemMoveToGroup";
     this.MenuItemMoveToGroup.ShortcutKeys = Keys.M | Keys.Control;
     this.MenuItemMoveToGroup.Size         = new Size(227, 22);
     this.MenuItemMoveToGroup.Text         = "Переместить в группу";
     this.MenuItemMoveToGroup.Click       += new EventHandler(this.MenuItemMoveToGroup_Click);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.ForeColor                    = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseBackColor         = true;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseBorderColor       = true;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseForeColor         = true;
     this.gridViewAdvertisingAction.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.GroupPanel.Options.UseBackColor         = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.ForeColor              = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.GradientMode           = LinearGradientMode.Vertical;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseBackColor   = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseBorderColor = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseForeColor   = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.ForeColor                   = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseBackColor        = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseBorderColor      = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseForeColor        = true;
     this.gridViewAdvertisingAction.BorderStyle = BorderStyles.Simple;
     this.gridViewAdvertisingAction.Columns.AddRange(new GridColumn[9]
     {
         this.colidadvertisingaction,
         this.colname,
         this.coldtstart,
         this.coldtfinish,
         this.colperc,
         this.colsm,
         this.colcomment,
         this.colvalut_shortname,
         this.colisactive
     });
     this.gridViewAdvertisingAction.GridControl    = this.gridControlAdvertisingAction;
     this.gridViewAdvertisingAction.GroupPanelText = "Панель группировки";
     this.gridViewAdvertisingAction.Name           = "gridViewAdvertisingAction";
     this.gridViewAdvertisingAction.OptionsCustomization.AllowFilter = false;
     this.gridViewAdvertisingAction.OptionsView.ShowAutoFilterRow    = true;
     this.gridViewAdvertisingAction.OptionsView.ShowDetailButtons    = false;
     this.gridViewAdvertisingAction.OptionsView.ShowIndicator        = false;
     this.gridViewAdvertisingAction.DoubleClick         += new EventHandler(this.gridViewAdvertisingAction_DoubleClick);
     this.colidadvertisingaction.Caption                 = "#";
     this.colidadvertisingaction.FieldName               = "idadvertisingaction";
     this.colidadvertisingaction.Name                    = "colidadvertisingaction";
     this.colidadvertisingaction.OptionsColumn.AllowEdit = false;
     this.colidadvertisingaction.Visible                 = true;
     this.colidadvertisingaction.VisibleIndex            = 0;
     this.colidadvertisingaction.Width                   = 29;
     this.colname.Caption          = "Наименование";
     this.colname.FieldName        = "name";
     this.colname.Name             = "colname";
     this.colname.Visible          = true;
     this.colname.VisibleIndex     = 1;
     this.colname.Width            = 64;
     this.coldtstart.Caption       = "Начало";
     this.coldtstart.FieldName     = "dtstart";
     this.coldtstart.Name          = "coldtstart";
     this.coldtstart.Visible       = true;
     this.coldtstart.VisibleIndex  = 2;
     this.coldtstart.Width         = 64;
     this.coldtfinish.Caption      = "Окончание";
     this.coldtfinish.FieldName    = "dtfinish";
     this.coldtfinish.Name         = "coldtfinish";
     this.coldtfinish.Visible      = true;
     this.coldtfinish.VisibleIndex = 3;
     this.coldtfinish.Width        = 64;
     this.colperc.Caption          = "%";
     this.colperc.ColumnEdit       = (RepositoryItem)this.CalcEditSum;
     this.colperc.FieldName        = "perc";
     this.colperc.Name             = "colperc";
     this.colperc.Visible          = true;
     this.colperc.VisibleIndex     = 4;
     this.colperc.Width            = 64;
     this.CalcEditSum.AutoHeight   = false;
     this.CalcEditSum.DisplayFormat.FormatString = "N4";
     this.CalcEditSum.DisplayFormat.FormatType   = FormatType.Numeric;
     this.CalcEditSum.EditFormat.FormatString    = "N4";
     this.CalcEditSum.EditFormat.FormatType      = FormatType.Numeric;
     this.CalcEditSum.Mask.EditMask = "N4";
     this.CalcEditSum.Name          = "CalcEditSum";
     this.colsm.Caption             = "Сумма";
     this.colsm.ColumnEdit          = (RepositoryItem)this.CalcEditSum;
     this.colsm.FieldName           = "sm";
     this.colsm.Name                      = "colsm";
     this.colsm.Visible                   = true;
     this.colsm.VisibleIndex              = 5;
     this.colsm.Width                     = 64;
     this.colcomment.Caption              = "Комментарий";
     this.colcomment.FieldName            = "comment";
     this.colcomment.Name                 = "colcomment";
     this.colcomment.Visible              = true;
     this.colcomment.VisibleIndex         = 7;
     this.colcomment.Width                = 85;
     this.colvalut_shortname.Caption      = "Валюта";
     this.colvalut_shortname.ColumnEdit   = (RepositoryItem)this.cboValut;
     this.colvalut_shortname.FieldName    = "valut_shortname";
     this.colvalut_shortname.Name         = "colvalut_shortname";
     this.colvalut_shortname.Visible      = true;
     this.colvalut_shortname.VisibleIndex = 6;
     this.colvalut_shortname.Width        = 64;
     this.cboValut.AutoHeight             = false;
     this.cboValut.Buttons.AddRange(new EditorButton[1]
     {
         new EditorButton(ButtonPredefines.Combo)
     });
     this.cboValut.Name            = "cboValut";
     this.cboValut.TextEditStyle   = TextEditStyles.DisableTextEditor;
     this.colisactive.Caption      = "V";
     this.colisactive.FieldName    = "isactive";
     this.colisactive.Name         = "colisactive";
     this.colisactive.Visible      = true;
     this.colisactive.VisibleIndex = 8;
     this.colisactive.Width        = 57;
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlAdvertisingAction);
     this.Controls.Add((Control)this.splitterControl1);
     this.Controls.Add((Control)this.AtTreeListControl);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name = "AdvertisingActionForm";
     this.Size = new Size(778, 352);
     this.Text = "AdvertisingActionForm";
     this.ds.EndInit();
     this.atButtonsPanel1.EndInit();
     this.AtTreeListControl.EndInit();
     this.gridControlAdvertisingAction.EndInit();
     this.MenuItem.ResumeLayout(false);
     this.gridViewAdvertisingAction.EndInit();
     this.CalcEditSum.EndInit();
     this.cboValut.EndInit();
     this.ResumeLayout(false);
 }