private void addBtn_Click(object sender, EventArgs e) { buttonstatadd = true; AddPackagesfrm addPackage = new AddPackagesfrm(); addPackage.buttonstatadd = buttonstatadd; addPackage.ShowDialog(); Display(); }
private void modifyBtn_Click(object sender, EventArgs e) { AddPackagesfrm addPackage = new AddPackagesfrm(); //PackagesFrm addPackage = new PackagesFrm(); addPackage.currentPackage = currentPackage; addPackage.buttonstatadd = false; addPackage.ShowDialog(); //context.SaveChanges(); Display(); }