private void addBtn_Click(object sender, EventArgs e) { var addForm = new AddInoutInventory(false); addForm.ShowDialog(); // fill lại fillData(); }
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(); }