Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmItems objfrmItems = new frmItems();

            if (objfrmItems.ShowDialog() == DialogResult.OK)
            {
                this.LoadItemsList();
            }
        }
Пример #2
0
 /// <summary>打开商品信息窗口</summary>
 private void ShowSPItems()
 {
     if (this.dgvSPItems.CurrentRow != null)
     {
         int      iId         = int.Parse(this.dgvSPItems.CurrentRow.Cells[0].Value.ToString());
         frmItems objfrmItems = new frmItems(iId);
         if (objfrmItems.ShowDialog() == DialogResult.OK)
         {
             this.LoadItemsList();
         }
     }
 }