private bool Delete()
        {
            if (!String.IsNullOrWhiteSpace(txtShortCode.Text))
            {
                try
                {
                    var result = AccountingService.DeleteVoucherTemplate(GetTemplate());

                    ClearFields();
                    InitGrid();
                    _isNewRecord = true;

                    return(result);
                }
                catch (Exception exception)
                {
                    throw new Exception(exception.Message);
                }
            }

            return(false);
        }