Example #1
0
        private void editGoodButton_Click(object sender, EventArgs e)
        {
            GoodForm goodForm = new GoodForm()
            {
                CurrentMode = GoodForm.Mode.Edit
            };

            goodForm.ShowDialog();
        }
Example #2
0
        //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();
        }