示例#1
0
        private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            item item = new item();

            item.id_item   = (int)dataGridViewX1.CurrentRow.Cells[0].Value;
            item.item_name = dataGridViewX1.CurrentRow.Cells[1].Value.ToString();
            ImportModule.senderItem(item);
        }
示例#2
0
        private void buttonItem11_Click(object sender, EventArgs e)
        {
            ImportModule im = new ImportModule();

            DevComponents.DotNetBar.TabItem t = tabControl1.CreateTab("Nhập kho", tabControl1.Tabs.Count);
            t.AttachedControl.Controls.Add(im);
            tabControl1.SelectedTab = t;
        }
        private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridViewX1.CurrentRow.Cells[0].Value != null)
            {
                employee em = new employee();
                em.name_employee = dataGridViewX1.CurrentRow.Cells[1].Value.ToString();
                em.id_employee   = (int)dataGridViewX1.CurrentRow.Cells[0].Value;
                if (this.Tag.Equals(2))
                {
                    ImportModule.senderEmployee(em);
                }
                else
                {
                    ExportModule.E_Sender(em);
                }

                this.Close();
            }
        }