Ejemplo n.º 1
0
 public static TermMessage ResetInstance()
 {
     HelpSettings settings = HelpSettings.CreateInstance();
     singletonInstance = AbstractConfig.Load(typeof(TermMessage), ExtraTypes, settings.HelpPath.TermMsg) as TermMessage;
     if (singletonInstance == null)
     {
         singletonInstance = new TermMessage();
         singletonInstance.Initialize();
     }
     return singletonInstance;
 }
Ejemplo n.º 2
0
 public static void AllReset()
 {
     pathInfo = PathInfo.ResetInstance();
     systemEnvironment = SystemEnvironment.ResetInstance();
     user = User.ResetInstance();
     userEnvironment = UserEnvironment.ResetInstance();
     optionCertification = OptionCertification.ResetInstance();
     printerSettings = PrintSetups.ResetInstance();
     messageClassify = MessageClassify.ResetInstance();
     helpSettings = HelpSettings.ResetInstance();
     fileSave = FileSave.ResetInstance();
     receiveNotice = ReceiveNotice.ResetInstance();
     userKey = UserKey.ResetInstance();
     termMessage = TermMessage.ResetInstance();
     gStamp = GStampSettings.ResetInstance();
 }
Ejemplo n.º 3
0
 public void CreateMessage(string messageCode, string applyStr, string internalCode)
 {
     ULogClass.LogWrite("Message Code=[" + messageCode + "] Apply Character String=[" + applyStr + "]\r\n" + internalCode);
     this.trmMsg = TermMessage.CreateInstance();
     this.trmMsgSet = this.trmMsg.TermMessageSetList.GetTermMessageSet(messageCode);
     if (this.trmMsgSet == null)
     {
         this.txbMessageCode.Text = "E---";
         this.rTxbMessage.Text = string.Format(Resources.ResourceManager.GetString("CORE102"), messageCode);
         this.rTxbDescription.Text = Resources.ResourceManager.GetString("CORE103");
         this.rTxbDisposition.Text = Resources.ResourceManager.GetString("CORE104");
         this.buttonSet(ButtonPatern.OK_ONLY, MessageKind.Error);
     }
     else
     {
         this.txbMessageCode.Text = messageCode;
         string str = this.trmMsgSet.Message.Replace(@"\n", "\n");
         if (applyStr == null)
         {
             this.rTxbMessage.Text = str;
         }
         else
         {
             this.rTxbMessage.Text = str.Replace("#s", applyStr);
         }
         this.rTxbDescription.Text = this.trmMsgSet.Description.Replace(@"\n", "\n");
         this.rTxbDisposition.Text = this.trmMsgSet.Disposition.Replace(@"\n", "\n");
         this.buttonSet(this.getButtonPatern(this.trmMsgSet.Button), this.getMessageKind(messageCode));
     }
     if ((internalCode != null) && !internalCode.Equals(""))
     {
         this.rTxbInternalCode.Text = internalCode;
     }
     else
     {
         this.rTxbInternalCode.Text = Resources.ResourceManager.GetString("INTERNAL_CODE_NULL");
     }
 }