Esempio n. 1
0
 ////////////////////////////////////////////////////////////////////////////////
 //Description:
 //  Get error result code, error message, and error reason.
 //  three kinds of language.Such as English, Simplified Chinese, and Traditional
 //  Chinese.
 ////////////////////////////////////////////////////////////////////////////////
 private void ErrMsgDlg(TrustLinkGeneralController aTG)
 {
     ShowMyMessage(Resources.TrustLinkGeneralSampleFormRes.ResourceManager.GetString("IDS_RESULT_CODE", AP_culture)
                   + aTG.LastErrCode.ToString()
                   + "\\n" + aTG.LastErrMsg
                   + "\\n" + aTG.LastErrReason);
 }
Esempio n. 2
0
 public FpBase(Page cs,EventHandler eh, Boolean blDefalutAlert)
 {
     _TG = new TrustLinkGeneralController();
     this.GetXParam();
     cs.Controls.Add(_TG);
     _TG.OnOperDlgPostEvent += eh;
     blDefaultAlert = blDefalutAlert;
 }
Esempio n. 3
0
 public FpBase(Page cs, EventHandler eh, Boolean blDefalutAlert)
 {
     _TG = new TrustLinkGeneralController();
     this.GetXParam();
     cs.Controls.Add(_TG);
     _TG.OnOperDlgPostEvent += eh;
     blDefaultAlert          = blDefalutAlert;
 }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        InitIniFile();
        _TG = new TrustLinkGeneralController();
        _TG.OnOperDlgPostEvent += new EventHandler(TrustLink_OperDlgPostEvent); //notice add the event
        foreach (Control c in this.Controls)
        {
            if (c is HtmlForm)
            {
                c.Controls.Add(_TG);
            }
        }

        if (!this.IsPostBack)
        {
            this.SetUIWording();
            this.LoadIniFile();
            SetDefaultParas();
        }
    }
 ////////////////////////////////////////////////////////////////////////////////
 //Description:
 //  Get error result code, error message, and error reason.
 //  three kinds of language.Such as English, Simplified Chinese, and Traditional
 //  Chinese.
 ////////////////////////////////////////////////////////////////////////////////
 private void ErrMsgDlg(TrustLinkGeneralController aTG)
 {
     ShowMyMessage(Resources.TrustLinkGeneralSampleFormRes.ResourceManager.GetString("IDS_RESULT_CODE", AP_culture)
         + aTG.LastErrCode.ToString()
         + "\\n" + aTG.LastErrMsg
         + "\\n" + aTG.LastErrReason);
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        InitIniFile();
        _TG = new TrustLinkGeneralController();
        _TG.OnOperDlgPostEvent += new EventHandler(TrustLink_OperDlgPostEvent); //notice add the event
        foreach (Control c in this.Controls)
        {
            if (c is HtmlForm)
            {
                c.Controls.Add(_TG);
            }
        }

        if (!this.IsPostBack)
        {
            this.SetUIWording();
            this.LoadIniFile();
            SetDefaultParas();
        }
    }