コード例 #1
0
        public void SetResponseForDelete(ValueEnum response)
        {
            if (response == ValueEnum.Yes && Model != null)
            {
                Model.Delete();
                ApplySearchCriteria();

                if (IsEditControl)
                {
                    SendBackMessage();
                }
            }
        }
コード例 #2
0
        public void SetResponseForBack(ValueEnum response)
        {
            if (response != ValueEnum.Cancel)
            {
                if (response == ValueEnum.Yes)
                {
                    Model.Save();
                }
                else
                {
                    Model.Rollback();
                }

                SendBackMessage();
            }
        }