protected override void OnEnter() { //GetElementById("ComComponnents").Style = "display: none"; setComponnents("ComComponnents", false, "btnHome", true, "btnReturn", true); string msg = (string)MyIntent.GetExtra("Message"); if (string.IsNullOrEmpty(msg)) { msg = Message; } GetElementById("Message1").InnerText = msg; GetElementById("Message2").InnerText = "请联系工作人员!"; //GetElementById("Message1").Style = "font-size:25px; visibility:visible; color: #000000; font-weight: normal;"; }
protected sealed override void OnEnter() { base.OnEnter(); if (MyIntent.GetExtra(MESSAGE) != null) { mMessage = MyIntent.GetExtra(MESSAGE); } if (mMessage == null) { mMessage = "Not Defined"; } if (MyIntent.GetExtra(Main_OR_BACK) != null) { IsBack = !(bool)MyIntent.GetExtra(Main_OR_BACK); } DoMessage(mMessage); MethodInvoker method = (MethodInvoker)MyIntent.GetExtra(METHOD); if (method != null) { PostAsync(method); } }
protected override void OnEnter() { //string msg = (string)MyIntent.GetExtra("Message"); //if (string.IsNullOrEmpty(msg)) // msg = Message; //GetElementById("Message1").InnerText = msg; //GetElementById("Message2").InnerText = "请联系工作人员!"; string msgstr = (string)MyIntent.GetExtra("Message"); if (string.IsNullOrEmpty(msgstr)) { msgstr = Message; } int index = msgstr.IndexOf('|'); if (index > -1) { string[] messagestr = msgstr.Split(new char[] { '|' }); if (messagestr.Length == 2) { GetElementById("Message1").InnerText = messagestr[0]; GetElementById("Message2").InnerText = messagestr[1]; } } else { GetElementById("Message1").InnerText = msgstr; GetElementById("Message2").InnerText = " "; } //GetElementById("MessageSub").InnerText = msg; //GetElementById("MessageSub").Style = "font-size:25px; visibility:visible"; }