Ejemplo n.º 1
0
        private void CreateNewFuneralServiceButton_Click(object sender, EventArgs e)
        {
            var createForm = new ManageForm(FuneralServiceOperation.Create);

            createForm.Closed += ShowAndRefreshListForm;

            HideListAndOpenManageForm(createForm);
        }
Ejemplo n.º 2
0
        private void CopyFuneralServiceButton_Click(object sender, System.EventArgs e)
        {
            int selectedOrderCreationYear = GetSelectedOrderCreationYear();
            int selectedOrderNumber       = GetSelectedOrderNumber();

            var copyForm = new ManageForm(FuneralServiceOperation.Copy, selectedOrderNumber, selectedOrderCreationYear);

            copyForm.Closed += ShowAndRefreshListForm;

            HideListAndOpenManageForm(copyForm);
        }
Ejemplo n.º 3
0
        private void EditFuneralServiceButton_Click(object sender, EventArgs e)
        {
            int selectedOrderCreationYear = GetSelectedOrderCreationYear();
            int selectedOrderNumber       = GetSelectedOrderNumber();

            var editForm = new ManageForm(FuneralServiceOperation.Edit, selectedOrderNumber, selectedOrderCreationYear);

            editForm.Closed += ShowAndRefreshListForm;

            HideListAndOpenManageForm(editForm);
        }