예제 #1
0
		private string FindException(OpenCbsDOAUpdateExceptionEnum exceptionId)
		{
			string returned = String.Empty;
			switch(exceptionId)
			{
				case OpenCbsDOAUpdateExceptionEnum.NewNameIsNull:
					returned = "DOAExceptionNewNameIsNull.Text";
					break;

				case OpenCbsDOAUpdateExceptionEnum.NoSelect:
					returned = "DOAExceptionNoSelect.Text";
					break;
			}
			return returned;
		}
        private string FindException(OpenCbsDOAUpdateExceptionEnum exceptionId)
        {
            string returned = String.Empty;

            switch (exceptionId)
            {
            case OpenCbsDOAUpdateExceptionEnum.NewNameIsNull:
                returned = "DOAExceptionNewNameIsNull.Text";
                break;

            case OpenCbsDOAUpdateExceptionEnum.NoSelect:
                returned = "DOAExceptionNoSelect.Text";
                break;
            }
            return(returned);
        }
 public OpenCbsDoaUpdateException(OpenCbsDOAUpdateExceptionEnum exceptionCode)
 {
     code = FindException(exceptionCode);
 }
예제 #4
0
		public OpenCbsDoaUpdateException(OpenCbsDOAUpdateExceptionEnum exceptionCode)
		{
			code = FindException(exceptionCode);
		}