public partial class MainForm : Form
{
public void refreshInventoryDGV()
{
// function that will be used in other form
}
private void addButton_Click(object sender, EventArgs e)
{
// need to pass "this" form instance to other form