Beispiel #1
0
 private void btnInventoryModify_Click(object sender, EventArgs e)
 {
     if (this.dgvInventory.SelectedRows.Count > 0)
     {
         DataGridViewRow row = this.dgvInventory.SelectedRows[0];
         using (var form = new PickInventoryVendor(mode.Edit, row.Cells["dgvInventory_Serno"].Value.ToString()))
         {
             panelInventory.Visible = false;
             panelMask.Visible      = true;
             var result = form.ShowDialog();
             panelInventory.Visible = true;
             panelMask.Visible      = false;
         }
         inventoryLoadData(ddlInventoryPage.SelectedIndex + 1);
     }
 }
Beispiel #2
0
        private void dgvInventory_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            DataGridViewRow row = this.dgvInventory.SelectedRows[0];

            using (var form = new PickInventoryVendor(mode.View, row.Cells["dgvInventory_Serno"].Value.ToString()))
            {
                panelInventory.Visible = false;
                panelMask.Visible      = true;
                var result = form.ShowDialog();
                panelInventory.Visible = true;
                panelMask.Visible      = false;
            }
        }