Beispiel #1
0
        public static IShowMsg CreateShowMsg(string errorCode)
        {
            IShowMsg showMsg = null;

            switch (errorCode)
            {
            case "1":
            case "2":
                showMsg = new ResultShowMsg();
                break;

            case "-1":
                showMsg = new ExistShowMsg();
                break;

            default:
                showMsg = new EmtipyShowMsg();
                break;
            }
            return(showMsg);
        }
Beispiel #2
0
 public SqlManager(IShowMsg shwMsg = null)
 {
     messageHendler = shwMsg;
 }