Esempio n. 1
0
        private string FindException(OpenCbsMFIExceptionEnum exceptionId)
        {
            string returned = String.Empty;
            switch (exceptionId)
            {
                case OpenCbsMFIExceptionEnum.NameIsEmpty:
                    returned = "OME1.Text";
                    break;

                case OpenCbsMFIExceptionEnum.PasswordIsNotFilled:
                    returned = "OME3.Text";
                    break;

                case OpenCbsMFIExceptionEnum.LoginIsNotFilled:
                    returned = "OME2.Text";
                    break;

                case OpenCbsMFIExceptionEnum.DifferentPassword:
                    returned = "OME4.Text";
                    break;
            }
            return returned;
        }
        private string FindException(OpenCbsMFIExceptionEnum exceptionId)
        {
            string returned = String.Empty;

            switch (exceptionId)
            {
            case OpenCbsMFIExceptionEnum.NameIsEmpty:
                returned = "OME1.Text";
                break;

            case OpenCbsMFIExceptionEnum.PasswordIsNotFilled:
                returned = "OME3.Text";
                break;

            case OpenCbsMFIExceptionEnum.LoginIsNotFilled:
                returned = "OME2.Text";
                break;

            case OpenCbsMFIExceptionEnum.DifferentPassword:
                returned = "OME4.Text";
                break;
            }
            return(returned);
        }
Esempio n. 3
0
        public OpenCbsMfiExceptions(OpenCbsMFIExceptionEnum exceptionCode)
		{
			this.code = this.FindException(exceptionCode);
            Console.WriteLine("EXCEPTION MFI EXCEPTION: {0}",code);
		}
 public OpenCbsMfiExceptions(OpenCbsMFIExceptionEnum exceptionCode)
 {
     this.code = this.FindException(exceptionCode);
     Console.WriteLine("EXCEPTION MFI EXCEPTION: {0}", code);
 }