示例#1
0
        private void ChooseKeszletek_Load(object sender, EventArgs e)
        {
            //1. oszlop

            ImageColumn imageColumn = new ImageColumn("", 1);
            imageColumn.Editable = false;

            TextColumn textColumn = new TextColumn("Raktár", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("Mennyiség", 50);
            ertekColumn.Editable = false;

            _ColumnModel = new ColumnModel(new Column[] {imageColumn, textColumn,
                                                                      ertekColumn});
            tblKeszletek.ColumnModel = _ColumnModel;
            tblKeszletek.TableModel = getTableModel();

            tblKeszletek.Font = DEFS.f2;
            tblKeszletek.TableModel.RowHeight = 40;

            txtAthozMenny.Text = needMenny.ToString();
        }
示例#2
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPP6750));
     this.ToolTip1        = new System.Windows.Forms.ToolTip(this.components);
     this.btnClose        = new System.Windows.Forms.Button();
     this.btnReceive      = new System.Windows.Forms.Button();
     this.grbMessage      = new System.Windows.Forms.GroupBox();
     this.xptMessage      = new XPTable.Models.Table();
     this.columnModel1    = new XPTable.Models.ColumnModel();
     this.cSTT            = new XPTable.Models.TextColumn();
     this.cDepartment     = new XPTable.Models.TextColumn();
     this.cCardID         = new XPTable.Models.TextColumn();
     this.cName           = new XPTable.Models.TextColumn();
     this.cWorkingDay     = new XPTable.Models.TextColumn();
     this.cTimeIn         = new XPTable.Models.TextColumn();
     this.cPic            = new XPTable.Models.ImageColumn();
     this.tableModel1     = new XPTable.Models.TableModel();
     this.btnClear        = new System.Windows.Forms.Button();
     this.btnConfig       = new System.Windows.Forms.Button();
     this.btnHelp         = new System.Windows.Forms.Button();
     this.aTimer          = new System.Windows.Forms.Timer(this.components);
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.contextMenu1    = new System.Windows.Forms.ContextMenu();
     this.mnuShow         = new System.Windows.Forms.MenuItem();
     this.mnuHide         = new System.Windows.Forms.MenuItem();
     this.menuItem3       = new System.Windows.Forms.MenuItem();
     this.mnuStart        = new System.Windows.Forms.MenuItem();
     this.mnuStop         = new System.Windows.Forms.MenuItem();
     this.menuItem6       = new System.Windows.Forms.MenuItem();
     this.mnuExit         = new System.Windows.Forms.MenuItem();
     this.notifyIcon1     = new System.Windows.Forms.NotifyIcon(this.components);
     this.grbMessage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit();
     this.SuspendLayout();
     //
     // btnClose
     //
     resources.ApplyResources(this.btnClose, "btnClose");
     this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnClose.Name      = "btnClose";
     this.btnClose.Click    += new System.EventHandler(this.btnClose_Click);
     //
     // btnReceive
     //
     resources.ApplyResources(this.btnReceive, "btnReceive");
     this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnReceive.Name      = "btnReceive";
     this.btnReceive.Click    += new System.EventHandler(this.btnReceive_Click);
     //
     // grbMessage
     //
     resources.ApplyResources(this.grbMessage, "grbMessage");
     this.grbMessage.Controls.Add(this.xptMessage);
     this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grbMessage.ForeColor = System.Drawing.Color.Black;
     this.grbMessage.Name      = "grbMessage";
     this.grbMessage.TabStop   = false;
     //
     // xptMessage
     //
     this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure;
     resources.ApplyResources(this.xptMessage, "xptMessage");
     this.xptMessage.ColumnModel   = this.columnModel1;
     this.xptMessage.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
     this.xptMessage.FullRowSelect = true;
     this.xptMessage.GridColor     = System.Drawing.SystemColors.ControlDark;
     this.xptMessage.GridLines     = XPTable.Models.GridLines.Rows;
     this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
     this.xptMessage.HeaderFont    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.xptMessage.Name          = "xptMessage";
     this.xptMessage.TableModel    = this.tableModel1;
     //
     // columnModel1
     //
     this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
         this.cSTT,
         this.cDepartment,
         this.cCardID,
         this.cName,
         this.cWorkingDay,
         this.cTimeIn,
         this.cPic
     });
     this.columnModel1.HeaderHeight = 30;
     //
     // cSTT
     //
     this.cSTT.Editable = false;
     this.cSTT.Text     = "STT";
     this.cSTT.Width    = 40;
     //
     // cDepartment
     //
     this.cDepartment.Text  = "Phòng";
     this.cDepartment.Width = 120;
     //
     // cCardID
     //
     this.cCardID.Editable = false;
     this.cCardID.Text     = "Mã thẻ";
     this.cCardID.Width    = 50;
     //
     // cName
     //
     this.cName.Editable = false;
     this.cName.Text     = "Tên nhân viên";
     this.cName.Width    = 140;
     //
     // cWorkingDay
     //
     this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cWorkingDay.Editable  = false;
     this.cWorkingDay.Text      = "Ngày làm việc";
     this.cWorkingDay.Width     = 95;
     //
     // cTimeIn
     //
     this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center;
     this.cTimeIn.Editable  = false;
     this.cTimeIn.Text      = "Giờ quẹt thẻ";
     this.cTimeIn.Width     = 80;
     //
     // cPic
     //
     this.cPic.Text  = "Ảnh";
     this.cPic.Width = 70;
     //
     // tableModel1
     //
     this.tableModel1.RowHeight = 100;
     //
     // btnClear
     //
     resources.ApplyResources(this.btnClear, "btnClear");
     this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnClear.Name      = "btnClear";
     this.btnClear.Click    += new System.EventHandler(this.btnClear_Click);
     //
     // btnConfig
     //
     resources.ApplyResources(this.btnConfig, "btnConfig");
     this.btnConfig.Name   = "btnConfig";
     this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
     //
     // btnHelp
     //
     resources.ApplyResources(this.btnHelp, "btnHelp");
     this.btnHelp.ForeColor = System.Drawing.Color.Black;
     this.btnHelp.Name      = "btnHelp";
     this.btnHelp.Click    += new System.EventHandler(this.btnHelp_Click);
     //
     // aTimer
     //
     this.aTimer.Enabled  = true;
     this.aTimer.Interval = 120000;
     this.aTimer.Tick    += new System.EventHandler(this.aTimerUpdate);
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuShow,
         this.mnuHide,
         this.menuItem3,
         this.mnuStart,
         this.mnuStop,
         this.menuItem6,
         this.mnuExit
     });
     this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
     //
     // mnuShow
     //
     this.mnuShow.Index = 0;
     resources.ApplyResources(this.mnuShow, "mnuShow");
     this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click);
     //
     // mnuHide
     //
     this.mnuHide.Index = 1;
     resources.ApplyResources(this.mnuHide, "mnuHide");
     this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 2;
     resources.ApplyResources(this.menuItem3, "menuItem3");
     //
     // mnuStart
     //
     this.mnuStart.Index = 3;
     resources.ApplyResources(this.mnuStart, "mnuStart");
     this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click);
     //
     // mnuStop
     //
     this.mnuStop.Index = 4;
     resources.ApplyResources(this.mnuStop, "mnuStop");
     this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 5;
     resources.ApplyResources(this.menuItem6, "menuItem6");
     //
     // mnuExit
     //
     this.mnuExit.Index = 6;
     resources.ApplyResources(this.mnuExit, "mnuExit");
     this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenu = this.contextMenu1;
     resources.ApplyResources(this.notifyIcon1, "notifyIcon1");
     this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
     //
     // frmPP6750
     //
     resources.ApplyResources(this, "$this");
     this.BackColor = System.Drawing.SystemColors.Control;
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnConfig);
     this.Controls.Add(this.btnClear);
     this.Controls.Add(this.grbMessage);
     this.Controls.Add(this.btnReceive);
     this.Controls.Add(this.btnClose);
     this.Cursor          = System.Windows.Forms.Cursors.Default;
     this.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "frmPP6750";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.frmPP6750_Closing);
     this.Load           += new System.EventHandler(this.frmMain_Load);
     this.Resize         += new System.EventHandler(this.frmPP6750_Resize);
     this.grbMessage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit();
     this.ResumeLayout(false);
 }
示例#3
0
        public ColumnModel getColumnModel()
        {
            //1. oszlop
            ImageColumn imageColumn = new ImageColumn("", 30);
            imageColumn.Editable = false;

            TextColumn textColumn = new TextColumn("név", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("érték", 50);
            ertekColumn.Editable = false;

            DateTimeColumn datetimeColumn = new DateTimeColumn("idő", 70);
            datetimeColumn.DateTimeFormat = DateTimePickerFormat.Time;
            datetimeColumn.Editable = false;
            datetimeColumn.ShowDropDownButton = false;

            return(new ColumnModel(new Column[] {imageColumn,
                                              datetimeColumn,
                                              textColumn,
                                              ertekColumn
                                              }));
        }
示例#4
0
 /// <summary>
 /// Creates an Image column
 /// </summary>
 private static ImageColumn CreateImageColumn(string header, int width, string toolTipText)
 {
     var col = new ImageColumn(header, width) {DrawText = false, Editable = false, ToolTipText = toolTipText};
     col.Comparer = typeof(TextComparer);
     return col;
 }
示例#5
0
		[DebuggerStepThrough()]private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmPP3750));
			this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
			this.btnClose = new System.Windows.Forms.Button();
			this.btnReceive = new System.Windows.Forms.Button();
			this.grbMessage = new System.Windows.Forms.GroupBox();
			this.xptMessage = new XPTable.Models.Table();
			this.columnModel1 = new XPTable.Models.ColumnModel();
			this.cSTT = new XPTable.Models.TextColumn();
			this.cDepartment = new XPTable.Models.TextColumn();
			this.cCardID = new XPTable.Models.TextColumn();
			this.cName = new XPTable.Models.TextColumn();
			this.cWorkingDay = new XPTable.Models.TextColumn();
			this.cTimeIn = new XPTable.Models.TextColumn();
			this.cPic = new XPTable.Models.ImageColumn();
			this.tableModel1 = new XPTable.Models.TableModel();
			this.btnClear = new System.Windows.Forms.Button();
			this.btnConfig = new System.Windows.Forms.Button();
			this.aTimer = new System.Windows.Forms.Timer(this.components);
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.mnuShow = new System.Windows.Forms.MenuItem();
			this.mnuHide = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.mnuStart = new System.Windows.Forms.MenuItem();
			this.mnuStop = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.mnuExit = new System.Windows.Forms.MenuItem();
			this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.button1 = new System.Windows.Forms.Button();
			this.grbMessage.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnClose, resources.GetString("btnClose.ToolTip"));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnReceive
			// 
			this.btnReceive.AccessibleDescription = resources.GetString("btnReceive.AccessibleDescription");
			this.btnReceive.AccessibleName = resources.GetString("btnReceive.AccessibleName");
			this.btnReceive.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnReceive.Anchor")));
			this.btnReceive.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnReceive.BackgroundImage")));
			this.btnReceive.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnReceive.Dock")));
			this.btnReceive.Enabled = ((bool)(resources.GetObject("btnReceive.Enabled")));
			this.btnReceive.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnReceive.FlatStyle")));
			this.btnReceive.Font = ((System.Drawing.Font)(resources.GetObject("btnReceive.Font")));
			this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnReceive.Image = ((System.Drawing.Image)(resources.GetObject("btnReceive.Image")));
			this.btnReceive.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnReceive.ImageAlign")));
			this.btnReceive.ImageIndex = ((int)(resources.GetObject("btnReceive.ImageIndex")));
			this.btnReceive.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnReceive.ImeMode")));
			this.btnReceive.Location = ((System.Drawing.Point)(resources.GetObject("btnReceive.Location")));
			this.btnReceive.Name = "btnReceive";
			this.btnReceive.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnReceive.RightToLeft")));
			this.btnReceive.Size = ((System.Drawing.Size)(resources.GetObject("btnReceive.Size")));
			this.btnReceive.TabIndex = ((int)(resources.GetObject("btnReceive.TabIndex")));
			this.btnReceive.Text = resources.GetString("btnReceive.Text");
			this.btnReceive.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnReceive.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnReceive, resources.GetString("btnReceive.ToolTip"));
			this.btnReceive.Visible = ((bool)(resources.GetObject("btnReceive.Visible")));
			this.btnReceive.Click += new System.EventHandler(this.btnReceive_Click);
			// 
			// grbMessage
			// 
			this.grbMessage.AccessibleDescription = resources.GetString("grbMessage.AccessibleDescription");
			this.grbMessage.AccessibleName = resources.GetString("grbMessage.AccessibleName");
			this.grbMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("grbMessage.Anchor")));
			this.grbMessage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("grbMessage.BackgroundImage")));
			this.grbMessage.Controls.Add(this.xptMessage);
			this.grbMessage.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("grbMessage.Dock")));
			this.grbMessage.Enabled = ((bool)(resources.GetObject("grbMessage.Enabled")));
			this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.grbMessage.Font = ((System.Drawing.Font)(resources.GetObject("grbMessage.Font")));
			this.grbMessage.ForeColor = System.Drawing.Color.Black;
			this.grbMessage.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("grbMessage.ImeMode")));
			this.grbMessage.Location = ((System.Drawing.Point)(resources.GetObject("grbMessage.Location")));
			this.grbMessage.Name = "grbMessage";
			this.grbMessage.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("grbMessage.RightToLeft")));
			this.grbMessage.Size = ((System.Drawing.Size)(resources.GetObject("grbMessage.Size")));
			this.grbMessage.TabIndex = ((int)(resources.GetObject("grbMessage.TabIndex")));
			this.grbMessage.TabStop = false;
			this.grbMessage.Text = resources.GetString("grbMessage.Text");
			this.ToolTip1.SetToolTip(this.grbMessage, resources.GetString("grbMessage.ToolTip"));
			this.grbMessage.Visible = ((bool)(resources.GetObject("grbMessage.Visible")));
			// 
			// xptMessage
			// 
			this.xptMessage.AccessibleDescription = resources.GetString("xptMessage.AccessibleDescription");
			this.xptMessage.AccessibleName = resources.GetString("xptMessage.AccessibleName");
			this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure;
			this.xptMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("xptMessage.Anchor")));
			this.xptMessage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("xptMessage.BackgroundImage")));
			this.xptMessage.ColumnModel = this.columnModel1;
			this.xptMessage.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("xptMessage.Dock")));
			this.xptMessage.Enabled = ((bool)(resources.GetObject("xptMessage.Enabled")));
			this.xptMessage.Font = ((System.Drawing.Font)(resources.GetObject("xptMessage.Font")));
			this.xptMessage.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(14)), ((System.Byte)(66)), ((System.Byte)(121)));
			this.xptMessage.FullRowSelect = true;
			this.xptMessage.GridColor = System.Drawing.SystemColors.ControlDark;
			this.xptMessage.GridLines = XPTable.Models.GridLines.Rows;
			this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
			this.xptMessage.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(163)));
			this.xptMessage.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("xptMessage.ImeMode")));
			this.xptMessage.Location = ((System.Drawing.Point)(resources.GetObject("xptMessage.Location")));
			this.xptMessage.Name = "xptMessage";
			this.xptMessage.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("xptMessage.RightToLeft")));
			this.xptMessage.Size = ((System.Drawing.Size)(resources.GetObject("xptMessage.Size")));
			this.xptMessage.TabIndex = ((int)(resources.GetObject("xptMessage.TabIndex")));
			this.xptMessage.TableModel = this.tableModel1;
			this.xptMessage.Text = resources.GetString("xptMessage.Text");
			this.ToolTip1.SetToolTip(this.xptMessage, resources.GetString("xptMessage.ToolTip"));
			this.xptMessage.Visible = ((bool)(resources.GetObject("xptMessage.Visible")));
			// 
			// columnModel1
			// 
			this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
																			   this.cSTT,
																			   this.cDepartment,
																			   this.cCardID,
																			   this.cName,
																			   this.cWorkingDay,
																			   this.cTimeIn,
																			   this.cPic});
			this.columnModel1.HeaderHeight = 30;
			// 
			// cSTT
			// 
			this.cSTT.Editable = false;
			this.cSTT.Text = "STT";
			this.cSTT.Width = 40;
			// 
			// cDepartment
			// 
			this.cDepartment.Text = "Phòng";
			this.cDepartment.Width = 120;
			// 
			// cCardID
			// 
			this.cCardID.Editable = false;
			this.cCardID.Text = "Mã thẻ";
			this.cCardID.Width = 50;
			// 
			// cName
			// 
			this.cName.Editable = false;
			this.cName.Text = "Tên nhân viên";
			this.cName.Width = 140;
			// 
			// cWorkingDay
			// 
			this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center;
			this.cWorkingDay.Editable = false;
			this.cWorkingDay.Text = "Ngày làm việc";
			this.cWorkingDay.Width = 95;
			// 
			// cTimeIn
			// 
			this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center;
			this.cTimeIn.Editable = false;
			this.cTimeIn.Text = "Giờ quẹt thẻ";
			this.cTimeIn.Width = 80;
			// 
			// cPic
			// 
			this.cPic.Text = "Ảnh";
			this.cPic.Width = 70;
			// 
			// tableModel1
			// 
			this.tableModel1.RowHeight = 100;
			// 
			// btnClear
			// 
			this.btnClear.AccessibleDescription = resources.GetString("btnClear.AccessibleDescription");
			this.btnClear.AccessibleName = resources.GetString("btnClear.AccessibleName");
			this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClear.Anchor")));
			this.btnClear.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClear.BackgroundImage")));
			this.btnClear.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClear.Dock")));
			this.btnClear.Enabled = ((bool)(resources.GetObject("btnClear.Enabled")));
			this.btnClear.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClear.FlatStyle")));
			this.btnClear.Font = ((System.Drawing.Font)(resources.GetObject("btnClear.Font")));
			this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText;
			this.btnClear.Image = ((System.Drawing.Image)(resources.GetObject("btnClear.Image")));
			this.btnClear.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClear.ImageAlign")));
			this.btnClear.ImageIndex = ((int)(resources.GetObject("btnClear.ImageIndex")));
			this.btnClear.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClear.ImeMode")));
			this.btnClear.Location = ((System.Drawing.Point)(resources.GetObject("btnClear.Location")));
			this.btnClear.Name = "btnClear";
			this.btnClear.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClear.RightToLeft")));
			this.btnClear.Size = ((System.Drawing.Size)(resources.GetObject("btnClear.Size")));
			this.btnClear.TabIndex = ((int)(resources.GetObject("btnClear.TabIndex")));
			this.btnClear.Text = resources.GetString("btnClear.Text");
			this.btnClear.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClear.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnClear, resources.GetString("btnClear.ToolTip"));
			this.btnClear.Visible = ((bool)(resources.GetObject("btnClear.Visible")));
			this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
			// 
			// btnConfig
			// 
			this.btnConfig.AccessibleDescription = resources.GetString("btnConfig.AccessibleDescription");
			this.btnConfig.AccessibleName = resources.GetString("btnConfig.AccessibleName");
			this.btnConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnConfig.Anchor")));
			this.btnConfig.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnConfig.BackgroundImage")));
			this.btnConfig.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnConfig.Dock")));
			this.btnConfig.Enabled = ((bool)(resources.GetObject("btnConfig.Enabled")));
			this.btnConfig.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnConfig.FlatStyle")));
			this.btnConfig.Font = ((System.Drawing.Font)(resources.GetObject("btnConfig.Font")));
			this.btnConfig.Image = ((System.Drawing.Image)(resources.GetObject("btnConfig.Image")));
			this.btnConfig.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnConfig.ImageAlign")));
			this.btnConfig.ImageIndex = ((int)(resources.GetObject("btnConfig.ImageIndex")));
			this.btnConfig.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnConfig.ImeMode")));
			this.btnConfig.Location = ((System.Drawing.Point)(resources.GetObject("btnConfig.Location")));
			this.btnConfig.Name = "btnConfig";
			this.btnConfig.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnConfig.RightToLeft")));
			this.btnConfig.Size = ((System.Drawing.Size)(resources.GetObject("btnConfig.Size")));
			this.btnConfig.TabIndex = ((int)(resources.GetObject("btnConfig.TabIndex")));
			this.btnConfig.Text = resources.GetString("btnConfig.Text");
			this.btnConfig.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnConfig.TextAlign")));
			this.ToolTip1.SetToolTip(this.btnConfig, resources.GetString("btnConfig.ToolTip"));
			this.btnConfig.Visible = ((bool)(resources.GetObject("btnConfig.Visible")));
			this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
			// 
			// aTimer
			// 
			this.aTimer.Enabled = true;
			this.aTimer.Interval = 120000;
			this.aTimer.Tick += new System.EventHandler(this.aTimerUpdate);
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.mnuShow,
																						 this.mnuHide,
																						 this.menuItem3,
																						 this.mnuStart,
																						 this.mnuStop,
																						 this.menuItem6,
																						 this.mnuExit});
			this.contextMenu1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("contextMenu1.RightToLeft")));
			this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
			// 
			// mnuShow
			// 
			this.mnuShow.Enabled = ((bool)(resources.GetObject("mnuShow.Enabled")));
			this.mnuShow.Index = 0;
			this.mnuShow.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuShow.Shortcut")));
			this.mnuShow.ShowShortcut = ((bool)(resources.GetObject("mnuShow.ShowShortcut")));
			this.mnuShow.Text = resources.GetString("mnuShow.Text");
			this.mnuShow.Visible = ((bool)(resources.GetObject("mnuShow.Visible")));
			this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click);
			// 
			// mnuHide
			// 
			this.mnuHide.Enabled = ((bool)(resources.GetObject("mnuHide.Enabled")));
			this.mnuHide.Index = 1;
			this.mnuHide.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuHide.Shortcut")));
			this.mnuHide.ShowShortcut = ((bool)(resources.GetObject("mnuHide.ShowShortcut")));
			this.mnuHide.Text = resources.GetString("mnuHide.Text");
			this.mnuHide.Visible = ((bool)(resources.GetObject("mnuHide.Visible")));
			this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Enabled = ((bool)(resources.GetObject("menuItem3.Enabled")));
			this.menuItem3.Index = 2;
			this.menuItem3.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem3.Shortcut")));
			this.menuItem3.ShowShortcut = ((bool)(resources.GetObject("menuItem3.ShowShortcut")));
			this.menuItem3.Text = resources.GetString("menuItem3.Text");
			this.menuItem3.Visible = ((bool)(resources.GetObject("menuItem3.Visible")));
			// 
			// mnuStart
			// 
			this.mnuStart.Enabled = ((bool)(resources.GetObject("mnuStart.Enabled")));
			this.mnuStart.Index = 3;
			this.mnuStart.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuStart.Shortcut")));
			this.mnuStart.ShowShortcut = ((bool)(resources.GetObject("mnuStart.ShowShortcut")));
			this.mnuStart.Text = resources.GetString("mnuStart.Text");
			this.mnuStart.Visible = ((bool)(resources.GetObject("mnuStart.Visible")));
			this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click);
			// 
			// mnuStop
			// 
			this.mnuStop.Enabled = ((bool)(resources.GetObject("mnuStop.Enabled")));
			this.mnuStop.Index = 4;
			this.mnuStop.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuStop.Shortcut")));
			this.mnuStop.ShowShortcut = ((bool)(resources.GetObject("mnuStop.ShowShortcut")));
			this.mnuStop.Text = resources.GetString("mnuStop.Text");
			this.mnuStop.Visible = ((bool)(resources.GetObject("mnuStop.Visible")));
			this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click);
			// 
			// menuItem6
			// 
			this.menuItem6.Enabled = ((bool)(resources.GetObject("menuItem6.Enabled")));
			this.menuItem6.Index = 5;
			this.menuItem6.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem6.Shortcut")));
			this.menuItem6.ShowShortcut = ((bool)(resources.GetObject("menuItem6.ShowShortcut")));
			this.menuItem6.Text = resources.GetString("menuItem6.Text");
			this.menuItem6.Visible = ((bool)(resources.GetObject("menuItem6.Visible")));
			// 
			// mnuExit
			// 
			this.mnuExit.Enabled = ((bool)(resources.GetObject("mnuExit.Enabled")));
			this.mnuExit.Index = 6;
			this.mnuExit.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("mnuExit.Shortcut")));
			this.mnuExit.ShowShortcut = ((bool)(resources.GetObject("mnuExit.ShowShortcut")));
			this.mnuExit.Text = resources.GetString("mnuExit.Text");
			this.mnuExit.Visible = ((bool)(resources.GetObject("mnuExit.Visible")));
			this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
			// 
			// notifyIcon1
			// 
			this.notifyIcon1.ContextMenu = this.contextMenu1;
			this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
			this.notifyIcon1.Text = resources.GetString("notifyIcon1.Text");
			this.notifyIcon1.Visible = ((bool)(resources.GetObject("notifyIcon1.Visible")));
			this.notifyIcon1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDown);
			this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = ((System.Drawing.Size)(resources.GetObject("imageList1.ImageSize")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// button1
			// 
			this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
			this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
			this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
			this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
			this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
			this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
			this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
			this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
			this.button1.ForeColor = System.Drawing.Color.Black;
			this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
			this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
			this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
			this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
			this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
			this.button1.Name = "button1";
			this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
			this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
			this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
			this.button1.Text = resources.GetString("button1.Text");
			this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
			this.ToolTip1.SetToolTip(this.button1, resources.GetString("button1.ToolTip"));
			this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// frmPP3750
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackColor = System.Drawing.SystemColors.Control;
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.button1);
			this.Controls.Add(this.btnConfig);
			this.Controls.Add(this.btnClear);
			this.Controls.Add(this.grbMessage);
			this.Controls.Add(this.btnReceive);
			this.Controls.Add(this.btnClose);
			this.Cursor = System.Windows.Forms.Cursors.Default;
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "frmPP3750";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.ToolTip1.SetToolTip(this, resources.GetString("$this.ToolTip"));
			this.Resize += new System.EventHandler(this.frmPP3750_Resize);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.frmPP3750_Closing);
			this.Load += new System.EventHandler(this.frmMain_Load);
			this.grbMessage.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit();
			this.ResumeLayout(false);

		}
示例#6
0
文件: Demo.cs 项目: adarmus/XPTable
            public override Column GetColumn(PropertyDescriptor prop, int index)
            {
                if (prop.Name == "size")
                {
                    ImageColumn col = new ImageColumn("size", _list.Images[0], 100);
                    return col;
                }
                else if (prop.Name == "like them?")
                {
                    CheckBoxColumn c = (CheckBoxColumn)base.GetColumn(prop, index);
                    c.Alignment = ColumnAlignment.Center;
                    c.DrawText = false;
                    c.CheckSize = new Size(25, 25);
                    return c;
                }
                else if (prop.Name == "name")
                {
                    ComboBoxColumn combo = new ComboBoxColumn("name");

                    return combo;
                }
                else
                {
                    return base.GetColumn(prop, index);
                }
            }
示例#7
0
        private void setColumnModelSum()
        {
            //1. oszlop
            ImageColumn imageColumn = new ImageColumn("", 30);
            imageColumn.Editable = false;

            NumberColumn numberColumn = new NumberColumn("db", 28);
            numberColumn.Editable = false;

            TextColumn textColumn = new TextColumn("név", 110);
            textColumn.Editable = false;

            NumberColumn ertekColumn = new NumberColumn("érték", 50);
            ertekColumn.Editable = false;

            DateTimeColumn datetimeColumn = new DateTimeColumn("idő", 70);
            datetimeColumn.DateTimeFormat = DateTimePickerFormat.Time;
            datetimeColumn.Editable = false;
            datetimeColumn.ShowDropDownButton = false;

            _ColumnModelSum = new ColumnModel(new Column[] {
                                                                      numberColumn,
                                                                      textColumn,
                                                                      ertekColumn
            });
        }
示例#8
0
文件: Demo.cs 项目: adarmus/XPTable
        private void DoGroup()
        {
            Table table = this.table;       // The Table control on a form - already initialised
            //table.Font = new Font(table.Font.FontFamily, 12f);
            table.SelectionStyle = SelectionStyle.Grid;
            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored
            table.FamilyRowSelect = true;
            table.FullRowSelect = true;
            table.ShowSelectionRectangle = false;
            table.MultiSelect = true;

            table.GridLines = GridLines.Both;

            GroupColumn col0 = new GroupColumn("", 20);   // this is the NEW +/- column
            col0.Editable = false;                      // Double clicking on this is to toggle the collapsed state
            col0.Selectable = false;
            col0.ToggleOnSingleClick = true;
            ImageColumn col1 = new ImageColumn("", 20);
            TextColumn col2 = new TextColumn("From", 200);
            DateTimeColumn col3 = new DateTimeColumn("Sent", 180); /// 493
            col3.ShowDropDownButton = false;
            col3.DateTimeFormat = DateTimePickerFormat.Custom;
            col3.CustomDateTimeFormat = "d/M/yyyy hh:mm";
            col3.Alignment = ColumnAlignment.Right;
            col3.AutoResizeMode = ColumnAutoResizeMode.Any;
            //NumberColumn col4 = new NumberColumn("num", 60);
            //col4.ShowUpDownButtons = true;
            ButtonColumn col4 = new ButtonColumn("butt");
            col4.FlatStyle = true;

            table.ColumnModel = new ColumnModel(new Column[] { col0, col1, col2, col3, col4 });

            TableModel model = new TableModel();
            //model.RowHeight = 24;

            AddEmailRows(model, true, "Dave ", "4/9/2007 12:34", "Here is the email subject", "Here is a preview of the text that is in the email. It wraps over too so you can see more of it");

            AddEmailRows(model, false, "Richard Richard Richard Richard Richard Richard Richard Richard Richard Richard Richard Richard Richard Richard", "5/4/2007 9:13", "An email abut something", "Another preview of another ficticious email. Not much to say really");

            AddEmailRows(model, true, "Andy", "13/2/2007 9:45", "Work stuff", "Can you get this finished by this afternoon please? Thanks");

            // Make and add the context menu:
            ContextMenu menu = new ContextMenu();
            MenuItem delete = new MenuItem("Delete");
            delete.Click += new EventHandler(delete_Click);
            menu.MenuItems.Add(delete);
            table.ContextMenu = menu;

            // Add an event handler for the key event
            table.CellKeyUp += new CellKeyEventHandler(table_CellKeyUp);
            table.CellButtonClicked += new CellButtonEventHandler(table_CellButtonClicked);

            table.CellMouseDown += new CellMouseEventHandler(table_CellMouseDown);
            table.CellMouseUp += new CellMouseEventHandler(table_CellMouseUp);

            this.table.TableModel = model;

            this.table.EndUpdate();

            return;
            #region Tracer stuff
            //_tracer = new Tracer(table, OnEventTrace);
            //_tracer.HookEvent("BeginEditing");
            //_tracer.HookEvent("CellClick");
            //_tracer.HookEvent("CellDoubleClick");
            //_tracer.HookEvent("CellMouseDown");
            //_tracer.HookEvent("CellMouseEnter");
            //_tracer.HookEvent("CellMouseHover");
            //_tracer.HookEvent("CellMouseLeave");
            //_tracer.HookEvent("CellMouseMove");
            //_tracer.HookEvent("CellMouseUp");
            //_tracer.HookEvent("CellPropertyChanged");
            //_tracer.HookEvent("Click");
            //_tracer.HookEvent("DoubleClick");
            //_tracer.HookEvent("EditingStopped");
            //_tracer.HookEvent("Enter");
            //_tracer.HookEvent("GotFocus");
            //_tracer.HookEvent("LostFocus");
            //_tracer.HookEvent("MouseCaptureChanged");
            //_tracer.HookEvent("MouseClick");
            //_tracer.HookEvent("MouseDoubleClick");
            //_tracer.HookEvent("MouseDown");
            //_tracer.HookEvent("MouseEnter");
            //_tracer.HookEvent("MouseHover");
            //_tracer.HookEvent("MouseLeave");
            //_tracer.HookEvent("MouseUp");
            //            _tracer.HookAllEvents();
            #endregion
        }
示例#9
0
文件: Demo.cs 项目: antiduh/XPTable
        private void DoGroup()
        {
            Table table = this.table;       // The Table control on a form - already initialised
            table.SelectionStyle = SelectionStyle.Grid;
            table.BeginUpdate();
            table.EnableWordWrap = true;    // If false, then Cell.WordWrap is ignored

            table.GridLines = GridLines.None;

            GroupColumn col0 = new GroupColumn("", 20);   // this is the NEW +/- column
            col0.Editable = false;                      // Double clicking on this is to toggle the collapsed state
            col0.Selectable = false;
            col0.ToggleOnSingleClick = true;
            ImageColumn col1 = new ImageColumn("", 20);
            TextColumn col2 = new TextColumn("From", 200);
            DateTimeColumn col3 = new DateTimeColumn("Sent", 120);
            col3.ShowDropDownButton = false;
            col3.DateTimeFormat = DateTimePickerFormat.Custom;
            col3.CustomDateTimeFormat = "d/m/yyyy hh:mm";
            ButtonColumn col4 = new ButtonColumn("butt");

            table.ColumnModel = new ColumnModel(new Column[] { col0, col1, col2, col3, col4 });

            TableModel model = new TableModel();

            AddEmailRows(model, true, "Dave", "4/9/2007 12:34", "Here is the email subject", "Here is a preview of the text that is in the email. It wraps over too so you can see more of it");

            AddEmailRows(model, false, "Richard", "5/4/2007 9:13", "An email abut something", "Another preview of another ficticious email. Not much to say really");

            AddEmailRows(model, true, "Andy", "13/2/2007 9:45", "Work stuff", "Can you get this finished by this afternoon please? Thanks");

            // Make and add the context menu:
            ContextMenu menu = new ContextMenu();
            MenuItem delete = new MenuItem("Delete");
            delete.Click += new EventHandler(delete_Click);
            menu.MenuItems.Add(delete);
            table.ContextMenu = menu;

            // Add an event handler for the key event
            table.CellKeyUp += new CellKeyEventHandler(table_CellKeyUp);
            table.CellButtonClicked += new CellButtonEventHandler(table_CellButtonClicked);

            this.table.TableModel = model;

            this.table.EndUpdate();
        }
示例#10
0
		[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPP6750));
            this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.btnClose = new System.Windows.Forms.Button();
            this.btnReceive = new System.Windows.Forms.Button();
            this.grbMessage = new System.Windows.Forms.GroupBox();
            this.xptMessage = new XPTable.Models.Table();
            this.columnModel1 = new XPTable.Models.ColumnModel();
            this.cSTT = new XPTable.Models.TextColumn();
            this.cDepartment = new XPTable.Models.TextColumn();
            this.cCardID = new XPTable.Models.TextColumn();
            this.cName = new XPTable.Models.TextColumn();
            this.cWorkingDay = new XPTable.Models.TextColumn();
            this.cTimeIn = new XPTable.Models.TextColumn();
            this.cPic = new XPTable.Models.ImageColumn();
            this.tableModel1 = new XPTable.Models.TableModel();
            this.btnClear = new System.Windows.Forms.Button();
            this.btnConfig = new System.Windows.Forms.Button();
            this.btnHelp = new System.Windows.Forms.Button();
            this.aTimer = new System.Windows.Forms.Timer(this.components);
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.contextMenu1 = new System.Windows.Forms.ContextMenu();
            this.mnuShow = new System.Windows.Forms.MenuItem();
            this.mnuHide = new System.Windows.Forms.MenuItem();
            this.menuItem3 = new System.Windows.Forms.MenuItem();
            this.mnuStart = new System.Windows.Forms.MenuItem();
            this.mnuStop = new System.Windows.Forms.MenuItem();
            this.menuItem6 = new System.Windows.Forms.MenuItem();
            this.mnuExit = new System.Windows.Forms.MenuItem();
            this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
            this.grbMessage.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).BeginInit();
            this.SuspendLayout();
            // 
            // btnClose
            // 
            resources.ApplyResources(this.btnClose, "btnClose");
            this.btnClose.ForeColor = System.Drawing.SystemColors.ControlText;
            this.btnClose.Name = "btnClose";
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // btnReceive
            // 
            resources.ApplyResources(this.btnReceive, "btnReceive");
            this.btnReceive.ForeColor = System.Drawing.SystemColors.ControlText;
            this.btnReceive.Name = "btnReceive";
            this.btnReceive.Click += new System.EventHandler(this.btnReceive_Click);
            // 
            // grbMessage
            // 
            resources.ApplyResources(this.grbMessage, "grbMessage");
            this.grbMessage.Controls.Add(this.xptMessage);
            this.grbMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.grbMessage.ForeColor = System.Drawing.Color.Black;
            this.grbMessage.Name = "grbMessage";
            this.grbMessage.TabStop = false;
            // 
            // xptMessage
            // 
            this.xptMessage.AlternatingRowColor = System.Drawing.Color.Azure;
            resources.ApplyResources(this.xptMessage, "xptMessage");
            this.xptMessage.ColumnModel = this.columnModel1;
            this.xptMessage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(14)))), ((int)(((byte)(66)))), ((int)(((byte)(121)))));
            this.xptMessage.FullRowSelect = true;
            this.xptMessage.GridColor = System.Drawing.SystemColors.ControlDark;
            this.xptMessage.GridLines = XPTable.Models.GridLines.Rows;
            this.xptMessage.GridLineStyle = XPTable.Models.GridLineStyle.Dash;
            this.xptMessage.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
            this.xptMessage.Name = "xptMessage";
            this.xptMessage.TableModel = this.tableModel1;
            // 
            // columnModel1
            // 
            this.columnModel1.Columns.AddRange(new XPTable.Models.Column[] {
            this.cSTT,
            this.cDepartment,
            this.cCardID,
            this.cName,
            this.cWorkingDay,
            this.cTimeIn,
            this.cPic});
            this.columnModel1.HeaderHeight = 30;
            // 
            // cSTT
            // 
            this.cSTT.Editable = false;
            this.cSTT.Text = "STT";
            this.cSTT.Width = 40;
            // 
            // cDepartment
            // 
            this.cDepartment.Text = "Phòng";
            this.cDepartment.Width = 120;
            // 
            // cCardID
            // 
            this.cCardID.Editable = false;
            this.cCardID.Text = "Mã thẻ";
            this.cCardID.Width = 50;
            // 
            // cName
            // 
            this.cName.Editable = false;
            this.cName.Text = "Tên nhân viên";
            this.cName.Width = 140;
            // 
            // cWorkingDay
            // 
            this.cWorkingDay.Alignment = XPTable.Models.ColumnAlignment.Center;
            this.cWorkingDay.Editable = false;
            this.cWorkingDay.Text = "Ngày làm việc";
            this.cWorkingDay.Width = 95;
            // 
            // cTimeIn
            // 
            this.cTimeIn.Alignment = XPTable.Models.ColumnAlignment.Center;
            this.cTimeIn.Editable = false;
            this.cTimeIn.Text = "Giờ quẹt thẻ";
            this.cTimeIn.Width = 80;
            // 
            // cPic
            // 
            this.cPic.Text = "Ảnh";
            this.cPic.Width = 70;
            // 
            // tableModel1
            // 
            this.tableModel1.RowHeight = 100;
            // 
            // btnClear
            // 
            resources.ApplyResources(this.btnClear, "btnClear");
            this.btnClear.ForeColor = System.Drawing.SystemColors.ControlText;
            this.btnClear.Name = "btnClear";
            this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
            // 
            // btnConfig
            // 
            resources.ApplyResources(this.btnConfig, "btnConfig");
            this.btnConfig.Name = "btnConfig";
            this.btnConfig.Click += new System.EventHandler(this.btnConfig_Click);
            // 
            // btnHelp
            // 
            resources.ApplyResources(this.btnHelp, "btnHelp");
            this.btnHelp.ForeColor = System.Drawing.Color.Black;
            this.btnHelp.Name = "btnHelp";
            this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
            // 
            // aTimer
            // 
            this.aTimer.Enabled = true;
            this.aTimer.Interval = 120000;
            this.aTimer.Tick += new System.EventHandler(this.aTimerUpdate);
            // 
            // contextMenu1
            // 
            this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.mnuShow,
            this.mnuHide,
            this.menuItem3,
            this.mnuStart,
            this.mnuStop,
            this.menuItem6,
            this.mnuExit});
            this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
            // 
            // mnuShow
            // 
            this.mnuShow.Index = 0;
            resources.ApplyResources(this.mnuShow, "mnuShow");
            this.mnuShow.Click += new System.EventHandler(this.mnuShow_Click);
            // 
            // mnuHide
            // 
            this.mnuHide.Index = 1;
            resources.ApplyResources(this.mnuHide, "mnuHide");
            this.mnuHide.Click += new System.EventHandler(this.mnuHide_Click);
            // 
            // menuItem3
            // 
            this.menuItem3.Index = 2;
            resources.ApplyResources(this.menuItem3, "menuItem3");
            // 
            // mnuStart
            // 
            this.mnuStart.Index = 3;
            resources.ApplyResources(this.mnuStart, "mnuStart");
            this.mnuStart.Click += new System.EventHandler(this.mnuStart_Click);
            // 
            // mnuStop
            // 
            this.mnuStop.Index = 4;
            resources.ApplyResources(this.mnuStop, "mnuStop");
            this.mnuStop.Click += new System.EventHandler(this.mnuStop_Click);
            // 
            // menuItem6
            // 
            this.menuItem6.Index = 5;
            resources.ApplyResources(this.menuItem6, "menuItem6");
            // 
            // mnuExit
            // 
            this.mnuExit.Index = 6;
            resources.ApplyResources(this.mnuExit, "mnuExit");
            this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
            // 
            // notifyIcon1
            // 
            this.notifyIcon1.ContextMenu = this.contextMenu1;
            resources.ApplyResources(this.notifyIcon1, "notifyIcon1");
            this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
            // 
            // frmPP6750
            // 
            resources.ApplyResources(this, "$this");
            this.BackColor = System.Drawing.SystemColors.Control;
            this.Controls.Add(this.btnHelp);
            this.Controls.Add(this.btnConfig);
            this.Controls.Add(this.btnClear);
            this.Controls.Add(this.grbMessage);
            this.Controls.Add(this.btnReceive);
            this.Controls.Add(this.btnClose);
            this.Cursor = System.Windows.Forms.Cursors.Default;
            this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Name = "frmPP6750";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.frmPP6750_Closing);
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.Resize += new System.EventHandler(this.frmPP6750_Resize);
            this.grbMessage.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.xptMessage)).EndInit();
            this.ResumeLayout(false);

		}