private void editGoodButton_Click(object sender, EventArgs e) { GoodForm goodForm = new GoodForm() { CurrentMode = GoodForm.Mode.Edit }; goodForm.ShowDialog(); }
//public void activateBtn(bool status) //{ // editGoodButton.Visible = status; // btnDelete.Visible = status; //} private void editGoodButton_Click(object sender, EventArgs e) { if (SelectedGood is null) { //activateBtn(false); return; } // activateBtn(true); GoodForm goodForm = new GoodForm() { CurrentMode = GoodForm.Mode.Edit }; goodForm.ShowDialog(); }