예제 #1
0
        /// <summary>新增</summary>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmItem objfrmItem = new frmItem();

            if (objfrmItem.ShowDialog() == DialogResult.OK)
            {
                this.LoadItemList();
            }
        }
예제 #2
0
 /// <summary>显示店面窗口</summary>
 private void ShowItem()
 {
     if (this.dgvItem.CurrentRow != null)
     {
         string  ItemID     = this.dgvItem.CurrentRow.Cells[1].Value.ToString();
         frmItem objfrmItem = new frmItem(ItemID);
         if (objfrmItem.ShowDialog() == DialogResult.OK)
         {
             this.LoadItemList();
         }
     }
 }