コード例 #1
0
ファイル: ChensCheckComboBox.cs プロジェクト: xcxlTeam/xcxl
        public ChensCheckComboBox()
            : base()
        {
            // set draw mode to owner draw
            this.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; //DrawMode.OwnerDrawFixed

            this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.Font      = ControlCommon.GetDefaultFont();
            this.Height    = 23;
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public ChensComboBox()
     : base()
 {
     this.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.Font              = ControlCommon.GetDefaultFont();
     this.Height            = 23;
     this.BackColor         = System.Drawing.Color.White;
     this.FormattingEnabled = true;
     this.DropDownStyle     = ComboBoxStyle.DropDownList;
 }
コード例 #3
0
ファイル: ChensPage.cs プロジェクト: saiganmei/xcxl
        public ChensPage()
        {
            this.Font      = ControlCommon.GetDefaultFont();
            this.BackColor = System.Drawing.Color.White;

            InitializeComponent();
            _dDividPage = new DividPage(DefaultPageShowCounts);
            this.CurrentPageShowCounts = DefaultPageShowCounts;
            this.txtPageRecords.Text   = CurrentPageShowCounts.ToString();

            ShowPage();
        }
コード例 #4
0
ファイル: ChensDataGridView.cs プロジェクト: saiganmei/xcxl
        public ChensDataGridView()
        {
            this.Font            = ControlCommon.GetDefaultFont();
            this.BackgroundColor = System.Drawing.Color.WhiteSmoke;
            this.GridColor       = System.Drawing.Color.LightGray;
            this.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.White;
            this.SelectionMode            = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.RowHeadersVisible        = false;
            this.BorderStyle              = System.Windows.Forms.BorderStyle.None;
            this.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            this.RowsDefaultCellStyle.SelectionBackColor = System.Drawing.Color.CornflowerBlue;
            this.EditMode            = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
            this.AutoGenerateColumns = false;


            //this.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_CellContentDoubleClick);
            this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dgv_CellMouseDown);

            InitializeComponent();
        }
コード例 #5
0
ファイル: ChensMenuButton1.cs プロジェクト: xcxlTeam/xcxl
        private void ChensMenuButton1_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            //画底色   52,65,74
            SolidBrush b = new SolidBrush(Color.FromArgb(50, 150, 185));

            g.FillRectangle(b, 0, 0, this.Width, this.Height);

            //画边框
            Pen p = new Pen(Color.FromArgb(40, 47, 56));

            g.DrawRectangle(p, 0, 0, this.Width - 1, this.Height - 1);

            //画文字
            g.DrawString(jsmodule.Name, this.Font, new SolidBrush(Color.White), new PointF(80, 11));

            //画图标
            ControlCommon.DrawMenuIcon(g, jsmodule.ID);
        }
コード例 #6
0
ファイル: ChensNumberBox.cs プロジェクト: xcxlTeam/xcxl
 public ChensNumberBox() : base()
 {
     this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Font        = ControlCommon.GetDefaultFont();
 }
コード例 #7
0
ファイル: ChensCheckBox.cs プロジェクト: saiganmei/xcxl
 public ChensCheckBox()
     : base()
 {
     this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.Font      = ControlCommon.GetDefaultFont();
 }
コード例 #8
0
ファイル: ChensLabel.cs プロジェクト: saiganmei/xcxl
 public ChensLabel()
 {
     this.Font = ControlCommon.GetDefaultFont();
 }
コード例 #9
0
 public ChensMenuStrip()
 {
     this.Font      = ControlCommon.GetDefaultFont();
     this.BackColor = System.Drawing.Color.LightSteelBlue;
 }
コード例 #10
0
ファイル: ChensGroupBox.cs プロジェクト: saiganmei/xcxl
 public ChensGroupBox()
 {
     this.Font = ControlCommon.GetDefaultFont();
 }
コード例 #11
0
 public ChensButton() : base()
 {
     this.Font      = ControlCommon.GetDefaultFont();
     this.BackColor = mouseNotInColor;
 }