Ejemplo n.º 1
0
        private void addBtn_Click(object sender, EventArgs e)
        {
            var addForm = new AddInoutInventory(false);

            addForm.ShowDialog();

            // fill lại
            fillData();
        }
Ejemplo n.º 2
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            if (inOutInventoryViewBindingSource.Current == null)
            {
                return;
            }

            var curRow = (inOutInventoryViewBindingSource.Current as DataRowView).Row as SellManagementDbDataSet.InOut_Inventory_ViewRow;

            var editForm = new AddInoutInventory(curRow.Id);

            editForm.ShowDialog();

            // fill lại
            fillData();
        }