Esempio n. 1
0
File: Main.cs Progetto: Aneetha/Test
        public void datagird_style()
        {
            try
            {
                theater_search.Columns[0].HeaderText = "Theater Name";
                theater_search.Columns[1].HeaderText = "Screen Name";
                theater_search.Columns[2].HeaderText = "Location";
                theater_search.Columns[3].HeaderText = "City";
                theater_search.Columns[4].HeaderText = "Status";
                if (!theater_search.Columns.Contains("edit"))
                {
                    DataGridViewImageColumn edit = new DataGridViewImageColumn();
                    DataGridViewImageColumn delete = new DataGridViewImageColumn();

                    Image image = Image.FromFile(@"E:\Current Working\E-booking\Eticket_picx\delete.PNG");
                    Image image1 = Image.FromFile(@"E:\Current Working\E-booking\Eticket_picx\edit.PNG");
                    delete.Image = image;
                    edit.Image = image1;
                    //button.DefaultCellStyle

                    theater_search.Columns.Add(edit);
                    theater_search.Columns.Add(delete);
                    theater_search.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
                    theater_search.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
                    theater_search.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
                    theater_search.Columns[3].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
                    theater_search.Columns[4].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
                    theater_search.Columns[theater_search.Columns.Count-2].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
                    theater_search.Columns[theater_search.Columns.Count - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;

                }
            }
            catch { }
        }
Esempio n. 2
0
        public FormFtpClient()
        {
            InitializeComponent();

            // title bar
            this.Text = Application.ProductName + " " + Application.ProductVersion;

            // setup grid
            DataGridViewImageColumn ic = new DataGridViewImageColumn( false );
            ic.Name = "Type";
            gridItems.Columns.Add( ic );

            gridItems.Columns.Add( "Name", "Name" );
            gridItems.Columns.Add( "Size", "Size" );
            gridItems.Columns.Add( "Date", "Date" );

            gridItems.Columns["Type"].Width = 34;
            gridItems.Columns["Name"].Width = 200;
            gridItems.Columns["Size"].Width = 100;
            gridItems.Columns["Size"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
            gridItems.Columns["Date"].Width = 120;

            // update
            UpdateUi();
        }
 public frmArqueoCaja(DateTimePicker dtPicker)
 {
     InitializeComponent();
     Cursor.Current = Cursors.WaitCursor;
     this.dtPicker = dtPicker;
     DataGridViewImageColumn imageColumn2 = new DataGridViewImageColumn();
     Image image2 = global::StockVentas.Properties.Resources.document_edit;
     imageColumn2.Image = image2;
     imageColumn2.Name = "Editar";
     dgvTesoreria.Columns.Add(imageColumn2);
     DataGridViewImageColumn imageColumn = new DataGridViewImageColumn();
     Image image = global::StockVentas.Properties.Resources.delete16;
     imageColumn.Image = image;
     imageColumn.Name = "Borrar";
     dgvTesoreria.Columns.Add(imageColumn);
     dgvTesoreria.CellClick += new DataGridViewCellEventHandler(dgvTesoreria_CellClick);
     DataGridViewImageColumn imageColumn3 = new DataGridViewImageColumn();
     imageColumn3.Image = image2;
     imageColumn3.Name = "Editar";
     dgvVentas.Columns.Add(imageColumn3);
     DataGridViewImageColumn imageColumn4 = new DataGridViewImageColumn();
     imageColumn4.Image = image;
     imageColumn4.Name = "Borrar";
     dgvVentas.Columns.Add(imageColumn4);
     dgvVentas.CellClick += new DataGridViewCellEventHandler(dgvVentas_CellClick);
     tblArticulos = BL.ArticulosBLL.CrearDataset();
 }
 public frmArqueoCajaAdmin(DataSet dsArqueo, DateTime fecha, int idLocal, string nombreLocal, int idPc)
 {
     InitializeComponent();
     frmInstanciaArqueo = this;
     this.dt = dsArqueo;
     this.fecha = fecha;
     this.idLocal = idLocal;
     this.nombreLocal = nombreLocal;
     this.idPc = idPc;
     Cursor.Current = Cursors.WaitCursor;
     DataGridViewImageColumn imageColumn2 = new DataGridViewImageColumn();
     Image image2 = global::StockVentas.Properties.Resources.document_edit;
     imageColumn2.Image = image2;
     imageColumn2.Name = "Editar";
     dgvTesoreria.Columns.Add(imageColumn2);
     DataGridViewImageColumn imageColumn = new DataGridViewImageColumn();
     Image image = global::StockVentas.Properties.Resources.delete16;
     imageColumn.Image = image;
     imageColumn.Name = "Borrar";
     dgvTesoreria.Columns.Add(imageColumn);
     dgvTesoreria.CellClick += new DataGridViewCellEventHandler(dgvTesoreria_CellClick);
     DataGridViewImageColumn imageColumn3 = new DataGridViewImageColumn();
     imageColumn3.Image = image2;
     imageColumn3.Name = "Editar";
     dgvVentas.Columns.Add(imageColumn3);
     DataGridViewImageColumn imageColumn4 = new DataGridViewImageColumn();
     imageColumn4.Image = image;
     imageColumn4.Name = "Borrar";
     dgvVentas.Columns.Add(imageColumn4);
     dgvVentas.CellClick += new DataGridViewCellEventHandler(dgvVentas_CellClick);
     tblArticulos = BL.GetDataBLL.Articulos();
     OrganizarTablas();
     CargarDatos();
 }
Esempio n. 5
0
        //onload fill datagrid
        private void adviserForm_Load(object sender, EventArgs e)
        {
            DataGridViewColumn column = new DataGridViewTextBoxColumn();
            // Initialize and add a check box column.

            column = new DataGridViewImageColumn();
            //   column.Image
            column.DataPropertyName = "pictureArrByte";
            column.Width = 80;

            column.Name = "picture";
            column.ReadOnly = false;
            dataGridView.Columns.Add(column);

            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "playerId";
            column.Name = "Id";
            dataGridView.Columns.Add(column);

            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "firstName";
            column.Name = "First Name";
            dataGridView.Columns.Add(column);

            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "lastName";
            column.Name = "Last Name";
            dataGridView.Columns.Add(column);

            // Initialize and add a check box column.
            DataGridViewCheckBoxColumn columnCheckBox = new DataGridViewCheckBoxColumn();
            columnCheckBox.DataPropertyName = "Action";
            columnCheckBox.Name = "Action";
            columnCheckBox.ReadOnly = false;
            dataGridView.Columns.Add(columnCheckBox);

            //Fill data to form
            Players[] list = server.getAdvisors(playerId);
            dataGridView.AutoGenerateColumns = false;
            dataGridView.AutoSize = false;
            foreach (Players player in list)
            {
                if (player.pictureArrByte != null)
                {

                    Rectangle compressionRectangle = new Rectangle(60, 60,
                     player.pictureArrByte.Width / 2, player.pictureArrByte.Height / 2);
                    using (Graphics g = Graphics.FromImage(player.pictureArrByte))
                        g.DrawImage(player.pictureArrByte, compressionRectangle);
                }

            }
            dataGridView.DataSource = list;
            //set the heigt for picture colum
            foreach (DataGridViewRow row in dataGridView.Rows)
            {
                row.Height = 75;
            }

        }
Esempio n. 6
0
        public Grille()
        {
            InitializeComponent();

            this.grilleData.AutoGenerateColumns = false; //Les colonnes sont créées manuellement

            grilleData.Columns.Insert(0, this.createSimpleColumn("Ref"));
            grilleData.Columns.Insert(1, this.createSimpleColumn("Contexte"));
            grilleData.Columns.Insert(2, this.createSimpleColumn("Sujet"));

            grilleData.Columns.Insert(3, this.createSimpleColumn("Titre"));
            grilleData.Columns["Titre"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;

            // Création de la colonne des liens
            DataGridViewImageColumn linkCol = new DataGridViewImageColumn();
            linkCol.Name = "Liens";
            linkCol.DataPropertyName = "Liens";
            grilleData.Columns.Insert(4, linkCol);

            grilleData.Columns.Insert(5, this.createSimpleColumn("Deadline"));
            grilleData.Columns.Insert(6, this.createSimpleColumn("Destinataire"));
            grilleData.Columns.Insert(7, this.createSimpleColumn("Statut"));

            this.grilleData.DataSource = new DataTable();

            // On rajoute les lignes qu'il faut dans le contextMenu de la liste d'actions
            NameValueCollection section = (NameValueCollection)ConfigurationManager.GetSection("Export");
            // Affichage de l'item dans le menu uniquement si une valeur d'export
            this.exportMenuItem.Visible = (section.Count > 0);
            foreach (string key in section)
                this.exportMenuItem.DropDown.Items.Add(key, null, this.exportRow);
            ((ToolStripDropDownMenu)exportMenuItem.DropDown).ShowImageMargin = false;
        }
Esempio n. 7
0
		private void UnboundImage_Load(object sender, EventArgs e)
		{
			genericImage = imageList.Images[1];
			newImage = imageList.Images[0];

			// Bind the grid.
			dataGridView1.DataSource = Program.StoreDB.GetProducts();

			// Create the image column.
			DataGridViewImageColumn imageCol = new DataGridViewImageColumn();
			imageCol.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
			imageCol.ImageLayout = DataGridViewImageCellLayout.Normal;
			imageCol.Frozen = true;
			imageCol.Name = "Image";
			imageCol.HeaderText = "";

			// Move the column to the left, and move the ProductID
			// column out of the way.
			imageCol.DisplayIndex = 0;
			dataGridView1.Columns["ProductID"].DisplayIndex = 1;

			// By default, show the generic image.
			imageCol.Image = genericImage;

			// Add the image column to the grid.
			dataGridView1.Columns.Add(imageCol);

		}
Esempio n. 8
0
        private void LoadTutorial()
        {
            tutorialGridView.Rows.Clear();
            tutorialGridView.Columns.Clear();
            string[] imagePaths = Directory.GetFiles(GestureStudio.GestureImagePath);

            for (int i = 0; i < imagePaths.Length / 3; i++)
            {
                DataGridViewImageColumn ImageColumn = new System.Windows.Forms.DataGridViewImageColumn() { HeaderText = "Gesture" };
                DataGridViewTextBoxColumn TextColumn = new System.Windows.Forms.DataGridViewTextBoxColumn() { HeaderText = "Name" };
                tutorialGridView.Columns.Add(ImageColumn);
                tutorialGridView.Columns.Add(TextColumn);
            }

            for (int i = 0; i < imagePaths.Length / 3; i++)
            {
                // Read in three images. Add to row.
                FileStream fs1 = File.OpenRead(imagePaths[i * 3]);
                byte[] by1 = new byte[fs1.Length];
                fs1.Read(by1, 0, by1.Length);
                String name1 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3]);
                FileStream fs2 = File.OpenRead(imagePaths[i * 3 + 1]);
                byte[] by2 = new byte[fs2.Length];
                fs2.Read(by2, 0, by2.Length);
                String name2 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3 + 1]);
                FileStream fs3 = File.OpenRead(imagePaths[i * 3 + 2]);
                byte[] by3 = new byte[fs3.Length];
                fs3.Read(by3, 0, by3.Length);
                String name3 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3 + 2]);
                tutorialGridView.Rows.Add(by1, name1, by2, name2, by3, name3);
            }
        }
Esempio n. 9
0
        public AddMeasure()
        {
            InitializeComponent();

            string dbPath = Path.Combine(
                Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location),
                Properties.Settings.Default.DbName);
            this.engine = new SQLiteDBEngine(dbPath);
            // Облачность
            cbCloud.DataSource = engine.AddBlankRow(engine.ExecuteQueryReturnDataTable(new SQLiteCommand("SELECT ID, Name FROM cloud")));
            cbCloud.DisplayMember = "Name";
            cbCloud.ValueMember = "ID";
            // Ветер
            cbWind.DataSource = engine.AddBlankRow(engine.ExecuteQueryReturnDataTable(new SQLiteCommand("SELECT ID, Name FROM wind")));
            cbWind.DisplayMember = "Name";
            cbWind.ValueMember = "ID";
            // Сила ветра
            cbWindForce.DataSource = engine.AddBlankRow(engine.ExecuteQueryReturnDataTable(new SQLiteCommand("SELECT ID, Name FROM windForce")));
            cbWindForce.DisplayMember = "Name";
            cbWindForce.ValueMember = "ID";
            // Осадки
            cbFallouts.DataSource = engine.ExecuteQueryReturnDataTable(new SQLiteCommand("SELECT ID, Name, IconPath FROM fallout"));
            cbFallouts.DisplayMember = "Name";
            cbFallouts.ValueMember = "ID";
            cbFallouts.DropDownStyle = ComboBoxStyle.DropDownList;

            btnAddFallout.Click += btnAddFallout_Click;
            btnDelFallout.Click += btnDelFallout_Click;

            // Осадки
            dgvFallouts.ReadOnly = true;
            dgvFallouts.RowHeadersVisible = false;
            dgvFallouts.ColumnHeadersVisible = false;
            dgvFallouts.AutoGenerateColumns = false;
            dgvFallouts.AllowUserToAddRows = false;
            dgvFallouts.CellBorderStyle = DataGridViewCellBorderStyle.None;
            dgvFallouts.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgvFallouts.RowTemplate.Height = 36;

            // Precipitation table
            var flColumn = new DataGridViewTextBoxColumn();
            flColumn.DataPropertyName = "Name";
            flColumn.Name = "Name";
            flColumn.HeaderText = "Имя";
            flColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            dgvFallouts.Columns.Add(flColumn);

            var flIconColumn = new DataGridViewImageColumn();
            flIconColumn.DataPropertyName = "FalloutIcon";
            flIconColumn.Name = "FalloutIcon";
            flIconColumn.HeaderText = "Иконка";
            flIconColumn.Width = 36;
            dgvFallouts.Columns.Add(flIconColumn);

            errorProvider = new ErrorProvider();
            tbTemperature.Validating += new CancelEventHandler(tbTemperature_Validating);
            dgvFallouts.DataSource = this.engine.ExecuteQueryReturnDataTable(new SQLiteCommand("SELECT fs.ID, fs.Measure_ID, fs.Fallout_ID, f.Name, f.IconPath, NULL AS FalloutIcon FROM fallouts fs INNER JOIN fallout f ON fs.Fallout_ID = f.ID WHERE fs.Measure_ID IS NULL"));
            dgvFallouts.RowsAdded += new DataGridViewRowsAddedEventHandler(dgvFallouts_RowsAdded);
        }
Esempio n. 10
0
 private void configForm()
 {
     this.Text = Constantes.APP_NAME + " : Historique Approvisionnement";
     DataGridViewImageColumn iconColumn = new DataGridViewImageColumn();
     iconColumn.Name = "mouv";
     iconColumn.HeaderText = "";
     dgv_approvision.Columns.Insert(3, iconColumn);
 }
Esempio n. 11
0
        private void AddColumnsProgrammatically()
        {
            var col0 = new DataGridViewTextBoxColumn();
            var col1 = new DataGridViewTextBoxColumn();
            var col1a = new DataGridViewTextBoxColumn();
            var col2 = new DataGridViewTextBoxColumn();
            var col2a = new DataGridViewTextBoxColumn();
            var col3 = new DataGridViewTextBoxColumn();
            var col4 = new DataGridViewTextBoxColumn();

            col0.HeaderText = "Id";
            col0.Name = "Id";
            col0.ReadOnly = true;
            col0.Visible = false;

            col1.HeaderText = "User";
            col1.Name = "User_Id";
            col1.ReadOnly = true;
            col1.Visible = false;

            col1a.HeaderText = "Name";
            col1a.Name = "Name";
            col1a.ReadOnly = true;

            col2.HeaderText = "Message";
            col2.Name = "Message";
            //col2.Width = 300;
            col2.ReadOnly = true;

            col2a.HeaderText = "Countdown";
            col2a.Name = "countdown_ind";
            col2a.ReadOnly = true;
            col2a.Visible = false;

            col3.HeaderText = "End Date";
            col3.Name = "End_Date";
            col3.ReadOnly = true;

            col4.HeaderText = "Repeat";
            col4.Name = "Repeat_Ind";
            col4.ReadOnly = true;

            dataGridView1.Columns.AddRange(new DataGridViewColumn[] { col0, col1, col1a, col2, col2a, col3, col4 });

            DataGridViewImageColumn img_delete = new DataGridViewImageColumn();
            dataGridView1.Columns.Add(img_delete);
            img_delete.HeaderText = "Delete";
            img_delete.Name = "Delete";
            img_delete.Image = FruPak.PF.Global.Properties.Resources.delete;
            img_delete.ReadOnly = true;

            DataGridViewImageColumn img_edit = new DataGridViewImageColumn();
            dataGridView1.Columns.Add(img_edit);
            img_edit.HeaderText = "Edit";
            img_edit.Name = "Edit";
            img_edit.Image = FruPak.PF.Global.Properties.Resources.edit;
            img_edit.ReadOnly = true;
        }
Esempio n. 12
0
        public JpegViewer(string[] _jpgFiles, string jpgFile = "")
        {
            InitializeComponent();

            this.WindowState = FormWindowState.Maximized;//Maximize form

            #region initialize dgv
            //Add ImageColumn
            DataGridViewImageColumn imgColumn = new DataGridViewImageColumn();
            imgColumn.Name = "Image";
            imgColumn.ImageLayout = DataGridViewImageCellLayout.Zoom;//イメージを縦横の比率を維持して拡大、縮小表示する
            imgColumn.Description = "イメージ"; //イメージの説明。セルをクリップボードにコピーした時に使用される
            dgv.Columns.Add(imgColumn);//DataGridViewに追加する
            dgv.Columns["Image"].Width = 120;
            dgv.RowTemplate.Height = 90;

            //Add CheckBoxColumn
            DataGridViewCheckBoxColumn cbColumn = new DataGridViewCheckBoxColumn();
            cbColumn.Name = "cbColumn";
            dgv.Columns.Add(cbColumn);
            cbColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;

            //Add TextBoxColumn
            DataGridViewTextBoxColumn tbColumn = new DataGridViewTextBoxColumn();
            tbColumn.Name = "tbColumn";
            tbColumn.ReadOnly = true;
            dgv.Columns.Add(tbColumn);
            tbColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;

            dgv.RowHeadersVisible = false;//Make selector invisible
            dgv.ColumnHeadersVisible = false;//Make column header invisible
            dgv.AllowUserToAddRows = false;
            dgv.AllowUserToResizeColumns = false;
            dgv.AllowUserToResizeRows = false;
            #endregion

            #region dgv image procedure
            jpgFiles.AddRange(_jpgFiles);
            jpgFiles.Sort();

            for (int i = 0; i < jpgFiles.Count; i++)
            {
                try
                {
                    dgv.Rows.Add();
                    dgv["Image", i].Value = new Bitmap(jpgFiles[i].ToString());
                }
                catch (ArgumentOutOfRangeException)
                { MessageBox.Show("[ArgumentOutOfRangeException]" + Properties.Resources.HasOccurred, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
            }
            #endregion

            #region pictureBox
            pbMain.SizeMode = PictureBoxSizeMode.Zoom;
            selectedJpgFile = jpgFile;
            #endregion
        }
Esempio n. 13
0
 public static DataGridViewImageColumn createDgvImageColumn(String dataPropertyName, String headerText, int width, bool visible)
 {
     DataGridViewImageColumn column = new DataGridViewImageColumn();
     column.DataPropertyName = dataPropertyName;
     column.HeaderText = headerText;
     column.Width = width;
     column.ImageLayout = DataGridViewImageCellLayout.Normal;
     column.Visible = visible;
     return column;
 }
Esempio n. 14
0
		public void ImageTest ()
		{
			SWF.DataGridViewImageColumn column = new SWF.DataGridViewImageColumn ();
			column.HeaderText = "Image Column";

			ColumnCellTest (column, 
			                new SWF.DataGridViewImageCell (), 
			                false,
			                new SWF.DataGridViewImageCell ());
		}
Esempio n. 15
0
        public void ImageTest()
        {
            SWF.DataGridViewImageColumn column = new SWF.DataGridViewImageColumn();
            column.HeaderText = "Image Column";

            ColumnCellTest(column,
                           new SWF.DataGridViewImageCell(),
                           false,
                           new SWF.DataGridViewImageCell());
        }
 public frmEmpleadosMovCons(DataTable tblEmpleadosMov)
 {
     InitializeComponent();
     this.tblEmpleadosMov = tblEmpleadosMov;
     DataGridViewImageColumn imageColumn2 = new DataGridViewImageColumn();
     Image image2 = global::StockVentas.Properties.Resources.document_edit;
     imageColumn2.Image = image2;
     imageColumn2.Name = "Editar";
     dgvEmpleados.Columns.Add(imageColumn2);
 }
Esempio n. 17
0
        public Items(AionData data)
        {
            InitializeComponent();

            Thread t = new Thread(() => {

                XDocument doc = AionData.BXMLToXML(data.ReadXMLFile(@"Data\Items\Items.pak", "client_items.xml"));

                Dictionary<string, int> columns = new Dictionary<string, int>();
                BeginInvoke(new Action(() => {
                    DataGridViewImageColumn iconColumn = new DataGridViewImageColumn();
                    iconColumn.Name = "icon";
                    iconColumn.HeaderText = "icon";
                    dataGridView1.Columns.Add(iconColumn);

                    foreach (var node in doc.Elements().First().Elements().First().Elements()) {
                        dataGridView1.Columns.Add(node.Name.LocalName, node.Name.LocalName);
                        columns[node.Name.LocalName] = columns.Count;
                    }
                }));

                foreach (var node in doc.Elements().First().Elements()) {
                    BeginInvoke(new Action<XElement>(x => {
                        string[] values = new string[columns.Count];
                        foreach (XElement val in x.Elements()) {
                            if (!columns.ContainsKey(val.Name.LocalName)) {
                                dataGridView1.Columns.Add(val.Name.LocalName, val.Name.LocalName);
                                columns[val.Name.LocalName] = columns.Count;
                                Array.Resize(ref values, columns.Count);
                            }
                            values[columns[val.Name.LocalName]] = (val.Value);
                        }

                        var iconname = values[columns["icon_name"]];

                        Bitmap b = data.ReadDDSFile(@"Data\Items\Items.pak", iconname + ".dds");

                        object[] rowValues = new object[] { b }.Concat(values).ToArray();
                        int rowIndex = dataGridView1.Rows.Add(rowValues);
                        dataGridView1.Rows[rowIndex].Height = 64;

                    }), node);
                    Thread.Sleep(10);

                    if (dataGridView1.Rows.Count > 10000) {
                        return;
                    }
                }

            });

            t.IsBackground = true;
            t.Priority = ThreadPriority.Lowest;
            t.Start();
        }
Esempio n. 18
0
        private void btnQuery_Click(object sender, EventArgs e)
        {

            Cursor.Current = Cursors.WaitCursor;
            this.dgErrorCode.Rows.Clear();
                dgErrorCode.Columns.Clear();

                dgErrorCode.Columns.Add("序号", "序号");
                dgErrorCode.Columns.Add("子系统", "子系统");
                dgErrorCode.Columns.Add("报错关键字", "报错关键字");
                dgErrorCode.Columns.Add("报错描述", "报错描述");
                DataGridViewImageColumn column = new DataGridViewImageColumn();
                column.HeaderText = "出错截图信息";
                column.Name = "Image";
                //column.Image =System.Drawing.Image.FromFile( "./TestError.png");
                dgErrorCode.Columns.Add(column);
                //dgErrorCode.Columns.Add("出错截图信息", "出错截图信息");
                dgErrorCode.Columns.Add("原因及处理方法", "原因及处理方法");
                dgErrorCode.Columns.Add("联系方式", "联系方式");
               // dgErrorCode.Columns.Add("备注", "备注");
                dgErrorCode.Columns.Add("查询次数", "查询次数");

            AgentErrorCodeDao agentErrorCodeDao = new AgentErrorCodeDao();
            IList<AgentErrorCode> ErrorCodeList = agentErrorCodeDao.GetList(this.txtErrorCode.Text.Trim());


            if (ErrorCodeList != null && ErrorCodeList.Count > 0)
            {
                

                for (int i = 0; i < ErrorCodeList.Count; i++)
                {
                    dgErrorCode.Rows.Add();
                    DataGridViewRow row = dgErrorCode.Rows[i];
                    row.Cells[0].Value = (i + 1).ToString();
                    row.Cells[1].Value = ErrorCodeList[i].module;
                    row.Cells[2].Value = ErrorCodeList[i].keyword;
                    row.Cells[3].Value = ErrorCodeList[i].errorDesc;
                    row.Cells[4].Value = ErrorCodeList[i].errorImg;
                    row.Cells[5].Value = ErrorCodeList[i].solution;
                    row.Cells[6].Value = ErrorCodeList[i].contactName;
                    row.Cells[7].Value = ErrorCodeList[i].queryCount;


                }

                this.dgErrorCode.AutoResizeColumns();
                this.dgErrorCode.AutoResizeRows();
                //dgErrorCode.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True;
            }
            this.Cursor = Cursors.Default;
            
        }
Esempio n. 19
0
        public CustomerEditorForm(Space.RouteType routeType)
        {
            InitializeComponent();

            dgvMinHeight = dgvGeneral.Height;
            dgvMinWidth = dgvGeneral.Width;
            txtMinWidth = txtInput.Width;
            btnAddHeighLoc = btnNewProduct.Location.Y;

            this.Text = "เดชาพาณิชย์ - ข้อมูลลูกค้า";
            this.routeType = routeType;

            DataGridViewImageColumn editColumn = new DataGridViewImageColumn();
            editColumn.Image = Image.FromFile("edit-icon.png");
            editColumn.HeaderText = "";
            editColumn.Name = "Edit";
            dgvGeneral.Columns.Add(editColumn);

            DataGridViewImageColumn deleteColumn = new DataGridViewImageColumn();
            deleteColumn.Image = Image.FromFile("delete-icon.png");
            deleteColumn.HeaderText = "";
            deleteColumn.Name = "Delete";
            dgvGeneral.Columns.Add(deleteColumn);

            DataGridViewImageColumn orderUpColumn = new DataGridViewImageColumn();
            orderUpColumn.Image = Image.FromFile("arrow_up.png");
            orderUpColumn.HeaderText = "";
            orderUpColumn.Name = "Up";
            dgvGeneral.Columns.Add(orderUpColumn);

            DataGridViewImageColumn orderDownColumn = new DataGridViewImageColumn();
            orderDownColumn.Image = Image.FromFile("arrow_down.png");
            orderDownColumn.HeaderText = "";
            orderDownColumn.Name = "Down";
            dgvGeneral.Columns.Add(orderDownColumn);

            dgvGeneral.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            dgvGeneral.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[3].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[4].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[5].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[6].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.Columns[7].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            dgvGeneral.RowTemplate.Height = 30;
            dgvGeneral.RowHeadersVisible = false;

            customerList = Space.GetCustomersByRoute(routeType);
            ListAllCustomers();
        }
Esempio n. 20
0
        //on load fill datagrid
        private void champanshipForm_Load(object sender, EventArgs e)
        {

            DataGridViewColumn column = new DataGridViewTextBoxColumn();

            column = new DataGridViewImageColumn();
            //   column.Image
            column.DataPropertyName = "picture";
            column.Width = 80;
            column.Name = "picture";
            column.ReadOnly = false;
            dataGridViewChamp.Columns.Add(column);

            // Initialize and add a text box column.
            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Id";
            column.Name = "Id";
            dataGridViewChamp.Columns.Add(column);

            // Initialize and add a check box column.
            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Name";
            column.Name = "Name";
            dataGridViewChamp.Columns.Add(column);

            // Initialize and add a check box column.
            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Location";
            column.Name = "Location";
            dataGridViewChamp.Columns.Add(column);

            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Date";
            column.Name = "Date";
            dataGridViewChamp.Columns.Add(column);

            column = new DataGridViewTextBoxColumn();
            column.DataPropertyName = "Registered";
            column.Name = "Registered";
            column.DefaultCellStyle.NullValue = "No";
            dataGridViewChamp.Columns.Add(column);

            // Initialize and add a check box column.
            DataGridViewCheckBoxColumn columnCheckBox = new DataGridViewCheckBoxColumn();
            columnCheckBox.DataPropertyName = "Action";
            columnCheckBox.Name = "Action";
            columnCheckBox.ReadOnly = false;
            dataGridViewChamp.Columns.Add(columnCheckBox);
            fillDataGrid();
        }
        public void Setup()
        {
            //Create Columns
            dataGridView.ColumnCount = 3;
            dataGridView.Columns[0].Name = "Marble Color";
            dataGridView.Columns[1].Name = "Output";
            dataGridView.Columns[2].Name = "Status";
            DataGridViewImageColumn imageColumn = new DataGridViewImageColumn();
            imageColumn.Image = PSSC.App.Properties.Resources.SymbolCheck1;
            dataGridView.Columns.Insert(0, imageColumn);

            //Set Color, Font, Size for Columns Header
            dataGridView.EnableHeadersVisualStyles = false;
            dataGridView.Columns[0].Width = 50;
        }
Esempio n. 22
0
        public PlayGroundWithImages(int numberOfPlayers)
        {
            _game = new Game(numberOfPlayers);
            _totalPlayers = numberOfPlayers;
            InitializeComponent();
            if (numberOfPlayers < 2)
                groupBox3.Visible = false;

            for (var i = 0; i < Map.XSize; i++)
            {
                var clmn = new DataGridViewImageColumn();
                dataGridView1.Columns.Add(clmn);
            }
            dataGridView1.Rows.Add(Map.YSize);
            PrintMap(_game.Map);
        }
Esempio n. 23
0
 private void CheckBook_Submit_Click(object sender, EventArgs e)
 {
     if (Check_dataGridView1.ColumnCount != 0)
     {
         Check_dataGridView1.Columns.RemoveAt(Check_dataGridView1.ColumnCount - 1);
         Check_dataGridView1.Columns.RemoveAt(Check_dataGridView1.ColumnCount - 1);
     }
     try
     {
         string test = comboBox1.SelectedItem.ToString();
     }
     catch
     {
         MessageBox.Show("请选择要查询的项目!");
         return;
     }
     DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(3);
     if (comboBox1.SelectedItem.ToString() != "出版时间")
     {
         Check_dataGridView1.DataSource = manager.selectBook(CheckBook_textbox1.Text, comboBox1.SelectedItem.ToString()).Tables[0].DefaultView;
     }
     else
     {
         Check_dataGridView1.DataSource = manager.selectBook(dateTimePicker1.Value.ToShortDateString(), comboBox1.SelectedItem.ToString()).Tables[0].DefaultView;
     }
     DataGridViewImageColumn image = new DataGridViewImageColumn();//添加一个自定义Image编辑列
     image.HeaderText = "编辑";
     image.Width = 50;
     image.DefaultCellStyle = dataGridViewCellStyle1;
     image.Image = global::Library.Properties.Resources.edit2;
     DataGridViewImageColumn image1 = new DataGridViewImageColumn();//添加一个自定义Image删除列
     image1.HeaderText = "删除";
     image1.DefaultCellStyle = dataGridViewCellStyle1;
     image1.Width = 50;
     image1.Image = global::Library.Properties.Resources.delete1;
     /*DataGridViewButtonColumn button = new DataGridViewButtonColumn();
     button.DefaultCellStyle = dataGridViewCellStyle1;
     button.HeaderText = "Edit";
     button.Text = "编辑";
     button.Width = 50;
     Check_dataGridView1.Columns.AddRange(button);*/
     Check_dataGridView1.Columns.AddRange(image);
     Check_dataGridView1.Columns.AddRange(image1);
 }
Esempio n. 24
0
        //constructor
        public Grid(String fileName)
            : base()
        {
            initialiseTileMap(fileName);

            // set position of grid on the Form:
            Top = 0;
            Left = 0;

            // setup the columns to display images. We want to display images, so we set x columns worth of Image columns:
            for (int x = 0; x < tileMap.GetLength(0); x++)
            {
                DataGridViewImageColumn temp = new DataGridViewImageColumn();
                temp.ImageLayout = DataGridViewImageCellLayout.Zoom;
                Columns.Add(temp);
            }

            // then we can tell the grid the number of rows we want to display:
            RowCount = tileMap.GetLength(1);

            // set the properties of the grid(which is a DataGridView object):
            Height = RowCount * CELLSIZE + SPACESIZE;
            Width = Columns.Count * CELLSIZE + SPACESIZE;
            ScrollBars = ScrollBars.None;
            DoubleBuffered = true;
            CellBorderStyle = DataGridViewCellBorderStyle.None;
            ColumnHeadersVisible = false;
            RowHeadersVisible = false;

            foreach (DataGridViewRow r in Rows)
                r.Height = CELLSIZE;
            foreach (DataGridViewColumn c in Columns)
                c.Width = CELLSIZE;

            // rows and columns should never resize themselves to fit cell contents:
            AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
            AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;

            // prevent user from resizing rows or columns:
            AllowUserToResizeColumns = false;
            AllowUserToResizeRows = false;

            DrawTiles();
            kibblesRemaining = nStartKibbles;
        }
Esempio n. 25
0
        //Build a grid containing the bookmarks, returns it to the GUI
        public DataGridView BuildBookmarks()
        {
            //Create the grid to hold the bookmarks data
            bgrid = new DataGridView();
            //Create 4 columns
            bgrid.ColumnCount = 4;
            //Add the data columns
            bgrid.Columns[0].Name = "Bookmark Name";
            bgrid.Columns[1].Name = "Bookmark URL";
            //Set width
            bgrid.Columns[0].MinimumWidth = 230;
            bgrid.Columns[1].MinimumWidth = 168;
            //Disable sorting - we don't allow sorting of the bookmarks
            bgrid.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable;
            bgrid.Columns[1].SortMode = DataGridViewColumnSortMode.NotSortable;

            //Create delete button colum
            DataGridViewImageColumn del = new DataGridViewImageColumn();
            del.HeaderText = "Delete";
            del.Name = "Delete";
            del.Width = 50;
            del.Image = m3app2_new.Properties.Resources.notification_error;
            del.SortMode = DataGridViewColumnSortMode.NotSortable;

            //Create visit button column
            DataGridViewImageColumn ib = new DataGridViewImageColumn();
            ib.HeaderText = "Visit";
            ib.Name = "Visit";
            ib.Width = 50;
            ib.Image = m3app2_new.Properties.Resources.player_play;
            ib.SortMode = DataGridViewColumnSortMode.NotSortable;

            //Add these two colums
            bgrid.Columns.Insert(2, del);
            bgrid.Columns.Insert(3, ib);

            //Populate the grid with data
            RefreshBookmarks(bgrid);

            //Add the generic layout
            CreateGridLayout(bgrid, "Bookmarks");

            //reutrn the grid to the requesting browser
            return bgrid;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                dataGridView1.Columns.Clear();

                ComboItem item = comboBox1.SelectedItem as ComboItem;

                _selectedZone = item.Id;
                lfa.pmgmt.data.DAO.Logging.CurrentStatus currentStats = new data.DAO.Logging.CurrentStatus();
                currentStats.ConnectionString = _connectionString;

                List<lfa.pmgmt.data.DTO.Logging.CurrentStatus> statusList = currentStats.List(_selectedZone);

                dataGridView1.DataSource = statusList;

                DataGridViewImageColumn iColumn = new DataGridViewImageColumn();

                dataGridView1.Columns.Add(iColumn);

                foreach (DataGridViewRow row in dataGridView1.Rows)
                {
                    if (row.Cells[2].Value.ToString().Equals("OK"))
                    {
                        DataGridViewImageCell column = row.Cells[3] as DataGridViewImageCell;
                        column.Value = Image.FromFile("OK.png");
                    }
                    else
                    {
                        DataGridViewImageCell column = row.Cells[3] as DataGridViewImageCell;
                        column.Value = Image.FromFile("NotOK.png");
                    }
                    row.Height = 40;
                }

                dataGridView1.Columns[0].Visible = false;
                dataGridView1.Columns[1].Width = 400;
                dataGridView1.Columns[2].Visible = false;
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }
Esempio n. 27
0
        public ItemViewer()
        {
            InitializeComponent();
            db = new AionDB(@"C:\Experiments\AionDBGenerator\AionDBGenerator\bin\Debug\aion.sqlite",
                @"C:\Experiments\AionDBGenerator\AionDBGenerator\bin\Debug\icons.png");

            DataGridViewImageColumn dgvic = new DataGridViewImageColumn();
            dgvic.Name = "Icon";
            dgvic.HeaderText = "Icon";
            dataGridView1.Columns.Add(dgvic);

            dataGridView1.Columns.Add("Name", "Name");
            dataGridView1.Columns.Add("Level", "Level");
            dataGridView1.Columns.Add("Grade", "Grade");
            dataGridView1.Columns.Add("NPC Buy", "NPC Buy");
            dataGridView1.Columns.Add("AP", "AP");
            dataGridView1.Columns.Add("Side", "Side");
            dataGridView1.Columns.Add("Warehouseidx", "Warehouseidx");
        }
Esempio n. 28
0
        public ServerList() : base()
        {
            this.RowHeadersVisible     = false;
            this.AllowUserToAddRows    = false;
            this.AllowUserToDeleteRows = false;
            this.ReadOnly            = true;
            this.SelectionMode       = DataGridViewSelectionMode.FullRowSelect;
            this.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
            this.ScrollBars          = ScrollBars.Vertical;
            this.DoubleBuffered      = true;

            System.Windows.Forms.DataGridViewImageColumn lockColumn = new System.Windows.Forms.DataGridViewImageColumn();
            lockColumn.Image       = LockHeaderImage;
            lockColumn.HeaderText  = "Locked";
            lockColumn.Name        = "locked";
            lockColumn.ImageLayout = DataGridViewImageCellLayout.Stretch;

            this.Columns.Add(lockColumn);

            this.Columns["locked"].Width        = 20;
            this.Columns["locked"].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
            this.Columns["locked"].Resizable    = DataGridViewTriState.False;

            this.AutoGenerateColumns = true;

            this.CellPainting        += ImageCellPainting;
            this.RowsAdded           += ServerRowsAdded;
            this.CellFormatting      += ServerCellFormatting;
            this.DataBindingComplete += ApplyColumnStyle;
            this.SelectionChanged    += this.UpdateSelectedServerTick;

            this.VirtualMode = false;

            updateTimer = new System.Timers.Timer();

            updateTimer.Interval = 3000;
            updateTimer.Elapsed += this.UpdateTimerTick;

            selectedServerTimer = new System.Timers.Timer();

            selectedServerTimer.Interval = 500;
            selectedServerTimer.Elapsed += this.UpdateSelectedServerTick;
        }
Esempio n. 29
0
 private void LoadForm()
 {
     dgvUserStatus.DataSource = null;
     DataSet dataSet = UserStatus.GetAllUsersTableAsDataSet();
     dgvUserStatus.DataSource = dataSet.Tables[0];
     dgvUserStatus.Columns["onlineStatus"].Visible = false;
     dgvUserStatus.Columns["loginCount"].Visible = false;
     dgvUserStatus.Columns["firstLogin"].Visible = false;
     dgvUserStatus.Columns["lastLogin"].Visible = false;
     dgvUserStatus.Columns["id"].Visible = false;
     dgvUserStatus.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     dgvUserStatus.Columns["username"].Name = "Username";
     if (dgvUserStatus.Columns["Status"] != null) {
         dgvUserStatus.Columns.Remove("Status");
     }
     DataGridViewImageColumn imageCol = new DataGridViewImageColumn();
     imageCol.Name = "Status";
     dgvUserStatus.Columns.Add(imageCol);
 }
 public override object Clone()
 {
     DataGridViewImageColumn column;
     System.Type type = base.GetType();
     if (type == columnType)
     {
         column = new DataGridViewImageColumn();
     }
     else
     {
         column = (DataGridViewImageColumn) Activator.CreateInstance(type);
     }
     if (column != null)
     {
         base.CloneInternal(column);
         column.Icon = this.icon;
         column.Image = this.image;
     }
     return column;
 }
Esempio n. 31
0
        public FileSystemDataGridView()
        {
            if (Program.IsRuntime)
            {
                this.BackgroundColor = Color.White;
                this.ColumnHeadersVisible = false;
                this.RowHeadersVisible = false;
                this.AllowUserToResizeRows = false;
                this.AllowUserToResizeColumns = false;
                this.GridColor = Color.FromKnownColor(KnownColor.ControlLight);

                DataGridViewImageColumn imageColumn = new DataGridViewImageColumn(false);
                imageColumn.Width = 20;
                imageColumn.ValuesAreIcons = false;
                imageColumn.Image = Resources.browse_document;
                imageColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;

                DataGridViewTextBoxColumn textBoxColumn = new DataGridViewTextBoxColumn();
                textBoxColumn.Width = 50;
                textBoxColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

                DataGridViewLinkColumn browseColumn = new DataGridViewLinkColumn();
                browseColumn.TrackVisitedState = false;
                browseColumn.Width = 65;
                browseColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;

                DataGridViewLinkColumn delColumn = new DataGridViewLinkColumn();
                delColumn.TrackVisitedState = false;
                delColumn.Width = 65;
                delColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;

                this.Columns.Add(imageColumn);
                this.Columns.Add(textBoxColumn);
                this.Columns.Add(browseColumn);
                this.Columns.Add(delColumn);

                this.Rows.Clear();

                this.CurrentCell = this[1, 0];
            }
        }
Esempio n. 32
0
        DataGridViewColumn AddColumn(DataTable dt, string name, int w, Type type, string caption = "")
        {
            if (string.IsNullOrEmpty(caption)) caption = name;
            DataGridViewColumn c;
            if (type == typeof(Bitmap))
            {
                c = new DataGridViewImageColumn();
                c.Frozen = true;

                c.Width = 30;
            }
            else
            {
                c = new DataGridViewTextBoxColumn();
                c.HeaderText = caption;
            }
            c.Name = name;
            //dt.Columns.Add(c);
            dgv_doors.Columns.Add(c);
            return c;
        }
Esempio n. 33
0
        public override object Clone()
        {
            DataGridViewImageColumn column;

            System.Type type = base.GetType();
            if (type == columnType)
            {
                column = new DataGridViewImageColumn();
            }
            else
            {
                column = (DataGridViewImageColumn)Activator.CreateInstance(type);
            }
            if (column != null)
            {
                base.CloneInternal(column);
                column.Icon  = this.icon;
                column.Image = this.image;
            }
            return(column);
        }
Esempio n. 34
0
        private void LoadTutorial()
        {
            tutorialGridView.Rows.Clear();
            tutorialGridView.Columns.Clear();
            string[] imagePaths = Directory.GetFiles(GestureStudio.GestureImagePath);

            for (int i = 0; i < imagePaths.Length / 3; i++)
            {
                DataGridViewImageColumn ImageColumn = new System.Windows.Forms.DataGridViewImageColumn()
                {
                    HeaderText = "Gesture"
                };
                DataGridViewTextBoxColumn TextColumn = new System.Windows.Forms.DataGridViewTextBoxColumn()
                {
                    HeaderText = "Name"
                };
                tutorialGridView.Columns.Add(ImageColumn);
                tutorialGridView.Columns.Add(TextColumn);
            }

            for (int i = 0; i < imagePaths.Length / 3; i++)
            {
                // Read in three images. Add to row.
                FileStream fs1 = File.OpenRead(imagePaths[i * 3]);
                byte[]     by1 = new byte[fs1.Length];
                fs1.Read(by1, 0, by1.Length);
                String     name1 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3]);
                FileStream fs2   = File.OpenRead(imagePaths[i * 3 + 1]);
                byte[]     by2   = new byte[fs2.Length];
                fs2.Read(by2, 0, by2.Length);
                String     name2 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3 + 1]);
                FileStream fs3   = File.OpenRead(imagePaths[i * 3 + 2]);
                byte[]     by3   = new byte[fs3.Length];
                fs3.Read(by3, 0, by3.Length);
                String name3 = System.IO.Path.GetFileNameWithoutExtension(imagePaths[i * 3 + 2]);
                tutorialGridView.Rows.Add(by1, name1, by2, name2, by3, name3);
            }
        }
Esempio n. 35
0
        /// <include file='doc\DataGridViewImageColumn.uex' path='docs/doc[@for="DataGridViewImageColumn.Clone"]/*' />
        public override object Clone()
        {
            DataGridViewImageColumn dataGridViewColumn;
            Type thisType = this.GetType();

            if (thisType == columnType) //performance improvement
            {
                dataGridViewColumn = new DataGridViewImageColumn();
            }
            else
            {
                // SECREVIEW : Late-binding does not represent a security thread, see

                dataGridViewColumn = (DataGridViewImageColumn)System.Activator.CreateInstance(thisType);
            }
            if (dataGridViewColumn != null)
            {
                base.CloneInternal(dataGridViewColumn);
                dataGridViewColumn.Icon  = this.icon;
                dataGridViewColumn.Image = this.image;
            }
            return(dataGridViewColumn);
        }
Esempio n. 36
0
        /// <include file='doc\DataGridViewImageColumn.uex' path='docs/doc[@for="DataGridViewImageColumn.Clone"]/*' />
        public override object Clone()
        {
            DataGridViewImageColumn dataGridViewColumn;
            Type thisType = this.GetType();

            if (thisType == columnType) //performance improvement
            {
                dataGridViewColumn = new DataGridViewImageColumn();
            }
            else
            {
                //

                dataGridViewColumn = (DataGridViewImageColumn)System.Activator.CreateInstance(thisType);
            }
            if (dataGridViewColumn != null)
            {
                base.CloneInternal(dataGridViewColumn);
                dataGridViewColumn.Icon  = this.icon;
                dataGridViewColumn.Image = this.image;
            }
            return(dataGridViewColumn);
        }
Esempio n. 37
0
        private void InitializeComponent()
        {
            components         = new System.ComponentModel.Container();
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

            _cellTemplateAlignRight           = new DataGridViewCellStyle();
            _cellTemplateAlignRight.Alignment = DataGridViewContentAlignment.MiddleRight;

            _cellTemplateAlignCenter           = new DataGridViewCellStyle();
            _cellTemplateAlignCenter.Alignment = DataGridViewContentAlignment.MiddleCenter;

            this._dataGridViewRefund   = new DataGridView();
            this.ColumnRfdAvatar       = new DataGridViewImageColumn();
            this.ColumnRfdAmount       = new DataGridViewTextBoxColumn();
            this.ColumnRfdUserGiver    = new DataGridViewTextBoxColumn();
            this.ColumnRfdUserReceiver = new DataGridViewTextBoxColumn();
            this.ColumnRfdCurrency     = new DataGridViewTextBoxColumn();
            this.ColumnRfdCurrencyPict = new DataGridViewImageColumn();
            this.ColumnRfdExchangeDone = new DataGridViewImageColumn();
            this.ColumnRfdGift         = new DataGridViewImageColumn();
            this.ColumnRfdCanceled     = new DataGridViewImageColumn();
            this.ColumnRfdStatus       = new DataGridViewTextBoxColumn();
            this.ColumnRfdId           = new DataGridViewTextBoxColumn();
            //
            // dataGridViewRefund
            //
            this._dataGridViewRefund.AllowUserToAddRows          = false;
            this._dataGridViewRefund.AllowUserToDeleteRows       = false;
            this._dataGridViewRefund.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this._dataGridViewRefund.ColumnHeadersVisible        = true;
            this._dataGridViewRefund.ScrollBars = ScrollBars.Both;
            this._dataGridViewRefund.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.ColumnRfdId,
                this.ColumnRfdAmount,
                this.ColumnRfdCurrency,
                this.ColumnRfdCurrencyPict,
                this.ColumnRfdUserGiver,
                this.ColumnRfdAvatar,
                this.ColumnRfdUserReceiver,
                this.ColumnRfdExchangeDone,
                this.ColumnRfdGift,
                this.ColumnRfdCanceled,
                this.ColumnRfdStatus
            });
            this._dataGridViewRefund.Dock                                = System.Windows.Forms.DockStyle.Top;
            this._dataGridViewRefund.Location                            = new System.Drawing.Point(0, 0);
            this._dataGridViewRefund.MultiSelect                         = false;
            this._dataGridViewRefund.Name                                = "dataGridViewRefund";
            this._dataGridViewRefund.RowHeadersVisible                   = false;
            this._dataGridViewRefund.AutoSize                            = false;
            this._dataGridViewRefund.TabIndex                            = 0;
            this._dataGridViewRefund.BackgroundColor                     = Color.FromArgb(255, 85, 85, 85);
            this._dataGridViewRefund.ForeColor                           = Color.Silver;
            this._dataGridViewRefund.DefaultCellStyle.BackColor          = Color.FromArgb(255, 85, 85, 85);
            this._dataGridViewRefund.CellBorderStyle                     = DataGridViewCellBorderStyle.SingleHorizontal;
            this._dataGridViewRefund.DefaultCellStyle.SelectionBackColor = this._dataGridViewRefund.DefaultCellStyle.BackColor;
            this._dataGridViewRefund.CellClick                          += _dataGridViewRefund_CellClick;
            ((System.ComponentModel.ISupportInitialize)(this._dataGridViewRefund)).BeginInit();
            //
            // ColumnRfdAvatar
            //
            this.ColumnRfdAvatar.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdAvatar.HeaderText   = string.Empty;
            this.ColumnRfdAvatar.Image        = ((System.Drawing.Image)(ResourceIconSet16Default.user_gray));
            this.ColumnRfdAvatar.Name         = "ColumnRfdAvatar";
            this.ColumnRfdAvatar.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
            this.ColumnRfdAvatar.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.ColumnRfdAvatar.Width        = 5;
            //
            // ColumnRfdId
            //
            this.ColumnRfdId.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdId.HeaderText   = string.Empty;
            this.ColumnRfdId.Name         = "ColumnRfdId";
            this.ColumnRfdId.Width        = 5;
            this.ColumnRfdId.Visible      = false;
            //
            // ColumnRfdUserGiver
            //
            this.ColumnRfdUserGiver.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.ColumnRfdUserGiver.HeaderText   = "Giver";
            this.ColumnRfdUserGiver.Name         = "ColumnRfdUserGiver";
            this.ColumnRfdUserGiver.Width        = 5;
            //
            // ColumnRfdUserReceiver
            //
            this.ColumnRfdUserReceiver.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.ColumnRfdUserReceiver.HeaderText   = "Receiver";
            this.ColumnRfdUserReceiver.Name         = "ColumnRfdUserReceiver";
            this.ColumnRfdUserReceiver.Width        = 5;
            //
            // ColumnRfdAmount
            //
            this.ColumnRfdAmount.AutoSizeMode     = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdAmount.HeaderText       = "Amount";
            this.ColumnRfdAmount.Name             = "ColumnRfdAmount";
            this.ColumnRfdAmount.Width            = 5;
            this.ColumnRfdAmount.DefaultCellStyle = _cellTemplateAlignRight;
            //
            // ColumnRfdCurrency
            //
            this.ColumnRfdCurrency.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdCurrency.HeaderText   = string.Empty;
            this.ColumnRfdCurrency.Name         = "ColumnRfdCurrency";
            this.ColumnRfdCurrency.Width        = 5;
            this.ColumnRfdCurrency.ToolTipText  = "Used currency";
            //
            // ColumnRfdCurrencyPict
            //
            this.ColumnRfdCurrencyPict.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdCurrencyPict.HeaderText   = string.Empty;
            this.ColumnRfdCurrencyPict.Name         = "ColumnRfdCurrencyPict";
            this.ColumnRfdCurrencyPict.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
            this.ColumnRfdCurrencyPict.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.ColumnRfdCurrencyPict.Width        = 5;
            //
            // ColumnRfdStatus
            //
            this.ColumnRfdStatus.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdStatus.HeaderText   = "Status";
            this.ColumnRfdStatus.Name         = "ColumnRfdStatus";
            this.ColumnRfdStatus.Width        = 5;
            //
            // ColumnRfdExchangeDone
            //
            this.ColumnRfdExchangeDone.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdExchangeDone.HeaderText   = string.Empty;
            this.ColumnRfdExchangeDone.Name         = "ColumnRfdExchangeDone";
            this.ColumnRfdExchangeDone.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
            this.ColumnRfdExchangeDone.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.ColumnRfdExchangeDone.Width        = 5;
            //
            // ColumnRfdGift
            //
            this.ColumnRfdGift.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdGift.HeaderText   = string.Empty;
            this.ColumnRfdGift.Name         = "ColumnRfdGift";
            this.ColumnRfdGift.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
            this.ColumnRfdGift.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.ColumnRfdGift.Width        = 5;
            //
            // ColumnRfdCanceled
            //
            this.ColumnRfdCanceled.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
            this.ColumnRfdCanceled.HeaderText   = string.Empty;
            this.ColumnRfdCanceled.Name         = "ColumnRfdCanceled";
            this.ColumnRfdCanceled.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
            this.ColumnRfdCanceled.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.ColumnRfdCanceled.Width        = 5;
            this.Controls.Add(_dataGridViewRefund);
            ((System.ComponentModel.ISupportInitialize)(this._dataGridViewRefund)).EndInit();
        }
        public Readers()
        {
            this.readersBindingSource                 = new System.Windows.Forms.BindingSource();
            this.getEditionsBindingSource             = new System.Windows.Forms.BindingSource();
            this.readersTableAdapter                  = new library2.library_dbDataSetTableAdapters.ReadersTableAdapter();
            this.gendersBindingSource                 = new System.Windows.Forms.BindingSource();
            this.gendersTableAdapter                  = new library2.library_dbDataSetTableAdapters.GetGendersTableAdapter();
            this.getAddressesBindingSource            = new System.Windows.Forms.BindingSource();
            this.getAddressesTableAdapter             = new library2.library_dbDataSetTableAdapters.GetAddressesTableAdapter();
            this.idDataGridViewTextBoxColumn          = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.lastnameDataGridViewTextBoxColumn    = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.nameDataGridViewTextBoxColumn        = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.patronymicDataGridViewTextBoxColumn  = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.phonenumberDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dateofbirthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.genderidDataGridViewTextBoxColumn    = new System.Windows.Forms.DataGridViewComboBoxColumn();
            this.addressidDataGridViewTextBoxColumn   = new System.Windows.Forms.DataGridViewComboBoxColumn();
            this.photoDataGridViewImageColumn         = new System.Windows.Forms.DataGridViewImageColumn();
            //
            // dataGridView1
            //
            this.AutoGenerateColumns         = false;
            this.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.idDataGridViewTextBoxColumn,
                this.lastnameDataGridViewTextBoxColumn,
                this.nameDataGridViewTextBoxColumn,
                this.patronymicDataGridViewTextBoxColumn,
                this.phonenumberDataGridViewTextBoxColumn,
                this.dateofbirthDataGridViewTextBoxColumn,
                this.genderidDataGridViewTextBoxColumn,
                this.addressidDataGridViewTextBoxColumn,
                this.photoDataGridViewImageColumn
            });

            this.DataSource = this.readersBindingSource;
            this.Location   = new System.Drawing.Point(-4, 87);
            this.Name       = "dataGridView1";
            this.Size       = new System.Drawing.Size(740, 150);
            this.TabIndex   = 0;
            //
            // readersBindingSource
            //
            this.readersBindingSource.DataMember = "Readers";
            this.readersBindingSource.DataSource = this.library_dbDataSet;
            //
            // library_dbDataSet1
            //
            this.library_dbDataSet.DataSetName             = "library_dbDataSet";
            this.library_dbDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            //
            // getEditionsBindingSource
            //
            this.getEditionsBindingSource.DataMember = "GetEditions";
            this.getEditionsBindingSource.DataSource = this.library_dbDataSet;
            //
            // readersTableAdapter
            //
            this.readersTableAdapter.ClearBeforeFill = true;
            //
            // gendersBindingSource
            //
            this.gendersBindingSource.DataMember = "GetGenders";
            this.gendersBindingSource.DataSource = this.library_dbDataSet;
            //
            // gendersTableAdapter
            //
            this.gendersTableAdapter.ClearBeforeFill = true;
            //
            // getAddressesBindingSource
            //
            this.getAddressesBindingSource.DataMember = "GetAddresses";
            this.getAddressesBindingSource.DataSource = this.library_dbDataSet;
            //
            // getAddressesTableAdapter
            //
            this.getAddressesTableAdapter.ClearBeforeFill = true;
            //
            // idDataGridViewTextBoxColumn
            //
            this.idDataGridViewTextBoxColumn.DataPropertyName = "id";
            this.idDataGridViewTextBoxColumn.HeaderText       = "id";
            this.idDataGridViewTextBoxColumn.Name             = "idDataGridViewTextBoxColumn";
            //
            // lastnameDataGridViewTextBoxColumn
            //
            this.lastnameDataGridViewTextBoxColumn.DataPropertyName = "lastname";
            this.lastnameDataGridViewTextBoxColumn.HeaderText       = "lastname";
            this.lastnameDataGridViewTextBoxColumn.Name             = "lastnameDataGridViewTextBoxColumn";
            //
            // nameDataGridViewTextBoxColumn
            //
            this.nameDataGridViewTextBoxColumn.DataPropertyName = "name";
            this.nameDataGridViewTextBoxColumn.HeaderText       = "name";
            this.nameDataGridViewTextBoxColumn.Name             = "nameDataGridViewTextBoxColumn";
            //
            // patronymicDataGridViewTextBoxColumn
            //
            this.patronymicDataGridViewTextBoxColumn.DataPropertyName = "patronymic";
            this.patronymicDataGridViewTextBoxColumn.HeaderText       = "patronymic";
            this.patronymicDataGridViewTextBoxColumn.Name             = "patronymicDataGridViewTextBoxColumn";
            //
            // phonenumberDataGridViewTextBoxColumn
            //
            this.phonenumberDataGridViewTextBoxColumn.DataPropertyName = "phone_number";
            this.phonenumberDataGridViewTextBoxColumn.HeaderText       = "phone_number";
            this.phonenumberDataGridViewTextBoxColumn.Name             = "phonenumberDataGridViewTextBoxColumn";
            //
            // dateofbirthDataGridViewTextBoxColumn
            //
            this.dateofbirthDataGridViewTextBoxColumn.DataPropertyName = "date_of_birth";
            this.dateofbirthDataGridViewTextBoxColumn.HeaderText       = "date_of_birth";
            this.dateofbirthDataGridViewTextBoxColumn.Name             = "dateofbirthDataGridViewTextBoxColumn";
            //
            // genderidDataGridViewTextBoxColumn
            //
            this.genderidDataGridViewTextBoxColumn.DataPropertyName = "gender_id";
            this.genderidDataGridViewTextBoxColumn.DataSource       = this.gendersBindingSource;
            this.genderidDataGridViewTextBoxColumn.DisplayMember    = "name";
            this.genderidDataGridViewTextBoxColumn.HeaderText       = "gender_id";
            this.genderidDataGridViewTextBoxColumn.Name             = "genderidDataGridViewTextBoxColumn";
            this.genderidDataGridViewTextBoxColumn.Resizable        = System.Windows.Forms.DataGridViewTriState.True;
            this.genderidDataGridViewTextBoxColumn.SortMode         = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.genderidDataGridViewTextBoxColumn.ValueMember      = "gender_id";
            this.genderidDataGridViewTextBoxColumn.DisplayStyle     = DataGridViewComboBoxDisplayStyle.Nothing;
            //
            // addressidDataGridViewTextBoxColumn
            //
            this.addressidDataGridViewTextBoxColumn.DataPropertyName = "address_id";
            this.addressidDataGridViewTextBoxColumn.DataSource       = this.getAddressesBindingSource;
            this.addressidDataGridViewTextBoxColumn.DisplayMember    = "name";
            this.addressidDataGridViewTextBoxColumn.HeaderText       = "address_id";
            this.addressidDataGridViewTextBoxColumn.Name             = "addressidDataGridViewTextBoxColumn";
            this.addressidDataGridViewTextBoxColumn.Resizable        = System.Windows.Forms.DataGridViewTriState.True;
            this.addressidDataGridViewTextBoxColumn.SortMode         = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.addressidDataGridViewTextBoxColumn.ValueMember      = "address_id";
            this.addressidDataGridViewTextBoxColumn.DisplayStyle     = DataGridViewComboBoxDisplayStyle.Nothing;
            //
            // photoDataGridViewImageColumn
            //
            this.photoDataGridViewImageColumn.DataPropertyName = "photo";
            this.photoDataGridViewImageColumn.HeaderText       = "photo";
            this.photoDataGridViewImageColumn.Name             = "photoDataGridViewImageColumn";
            this.photoDataGridViewImageColumn.Visible          = false;

            this.getAddressesTableAdapter.Fill(this.library_dbDataSet.GetAddresses);
            this.gendersTableAdapter.Fill(this.library_dbDataSet.GetGenders);
            this.readersTableAdapter.Fill(this.library_dbDataSet.Readers);
        }
Esempio n. 39
0
        private void InitializeInventoryComponent()
        {
            this.grpBxInventory       = new System.Windows.Forms.GroupBox();
            this.dataGridViewFoodItem = new System.Windows.Forms.DataGridView();
            this.dataGridViewItems    = new System.Windows.Forms.DataGridView();
            this.foodItem             = new System.Windows.Forms.DataGridViewImageColumn();
            this.btnInvoice           = new System.Windows.Forms.Button();
            this.lblOrder             = new System.Windows.Forms.Label();
            this.lblFood       = new System.Windows.Forms.Label();
            this.lblFoodItem   = new System.Windows.Forms.Label();
            this.txtBxQuantity = new System.Windows.Forms.TextBox();
            this.lblQuantity   = new System.Windows.Forms.Label();
            this.grpBxInventory.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewFoodItem)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewItems)).BeginInit();
            this.SuspendLayout();

            // grpBxFoodMenu
            //
            this.grpBxInventory.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
            this.grpBxInventory.Controls.Add(this.lblFoodItem);
            this.grpBxInventory.Controls.Add(this.lblFood);
            this.grpBxInventory.Controls.Add(this.lblOrder);
            this.grpBxInventory.Controls.Add(this.dataGridViewItems);
            this.grpBxInventory.Controls.Add(this.dataGridViewFoodItem);
            this.grpBxInventory.Controls.Add(this.txtBxQuantity);
            this.grpBxInventory.Controls.Add(this.lblQuantity);
            //
            // FoodItem
            //
            this.foodItem.HeaderText = "Items";
            this.foodItem.Name       = "foodItem";
            this.foodItem.Width      = 400;
            this.foodItem.ReadOnly   = true;

            this.grpBxInventory.Location = new System.Drawing.Point(this.Width - (this.Width - 280), 5);
            this.grpBxInventory.Name     = "grpBxFoodMenu";
            this.grpBxInventory.Size     = new System.Drawing.Size(1000, 715);
            this.grpBxInventory.TabIndex = 1;
            this.grpBxInventory.TabStop  = false;
            this.grpBxInventory.Text     = "Food inventory";
            //
            // dataGridViewFoodItem
            //
            this.dataGridViewFoodItem.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridViewFoodItem.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.foodItem
            });
            this.dataGridViewFoodItem.Location           = new System.Drawing.Point(15, 54);
            this.dataGridViewFoodItem.Name               = "dataGridViewFoodItem";
            this.dataGridViewFoodItem.RowTemplate.Height = 24;
            this.dataGridViewFoodItem.Size               = new System.Drawing.Size(350, 650);
            this.dataGridViewFoodItem.TabIndex           = 0;
            this.dataGridViewFoodItem.CellClick         += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewFoodItem_CellClick);
            //
            // dataGridViewItems
            //
            this.dataGridViewItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            //this.dataGridViewItems.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            ////this.foodItems,
            ////this.foodPrice,
            ////this.availQuantity,
            ////this.orderedQuantity,
            ////this.takeOrder
            //});
            this.dataGridViewItems.Location           = new System.Drawing.Point(400, 54);
            this.dataGridViewItems.Name               = "dataGridView2";
            this.dataGridViewItems.RowTemplate.Height = 24;
            this.dataGridViewItems.Size               = new System.Drawing.Size(350, 275);
            this.dataGridViewItems.TabIndex           = 1;
            this.dataGridViewItems.CellClick         += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewItems_CellClick);
            //
            // lblFood
            //
            this.lblFood.AutoSize = true;
            this.lblFood.Location = new System.Drawing.Point(400, 34);
            this.lblFood.Name     = "lblFood";
            this.lblFood.Size     = new System.Drawing.Size(46, 17);
            this.lblFood.TabIndex = 6;
            this.lblFood.Text     = "Items";
            //
            // lblFoodItem
            //
            this.lblFoodItem.AutoSize = true;
            this.lblFoodItem.Location = new System.Drawing.Point(15, 34);
            this.lblFoodItem.Name     = "lblFoodItem";
            this.lblFoodItem.Size     = new System.Drawing.Size(70, 17);
            this.lblFoodItem.TabIndex = 7;
            this.lblFoodItem.Text     = "Food Item";
            //
            //lblQuantity
            //
            this.lblQuantity.Location = new System.Drawing.Point(810, 200);
            this.lblQuantity.Name     = "lblQuantity";
            this.lblQuantity.Size     = new System.Drawing.Size(90, 20);
            this.lblQuantity.TabIndex = 29;
            this.lblQuantity.Text     = "Enter quantity";
            //this.lblQuantity.UseVisualStyleBackColor = true;
            //
            //txtBxQuantity
            //
            this.txtBxQuantity.Location = new System.Drawing.Point(810, 150);
            this.txtBxQuantity.Name     = "txtBxQuantity";
            this.txtBxQuantity.Text     = "1";
            this.txtBxQuantity.Size     = new System.Drawing.Size(150, 30);
            this.txtBxQuantity.Click   += new System.EventHandler(this.txtBxQuantity_Click);
            //
            // Admin
            //
            this.Controls.Add(this.grpBxInventory);
            this.grpBxInventory.ResumeLayout(false);
            this.grpBxInventory.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewFoodItem)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridViewItems)).EndInit();
            this.ResumeLayout(false);
        }