protected void btnDeleteMsg_OnClick(object sender, EventArgs e) { CMessages mmsg = new CMessages(BaseMstr); long lIsSentMsg = 0; long lMsgID = -1; if (tcMessages.ActiveTabIndex == 1) { lIsSentMsg = 1; } if (htxtSelectedMsg.Value.Length > 0) { lMsgID = Convert.ToInt32(htxtSelectedMsg.Value); } if (mmsg.MarkAsDeleted(lMsgID, lIsSentMsg)) { //clear message contents preview area lblTo.Text = String.Empty; lblFrom.Text = String.Empty; lblSubject.Text = String.Empty; txtMsgBodyContents.Text = String.Empty; htxtSelectedMsg.Value = String.Empty; divMsgContents.Visible = false; GetUserMessages(); } }
public void OnMessage(CMessages.eMessages m,object data) { if (m == CMessages.eMessages.ActionPressed ) { Debug.Log("\"CBahram_STT_First\" state receive Action pressed message."); } }
public void OnMessage(CMessages.eMessages m, object data) { if(m == CMessages.eMessages.ChairActive) { Debug.Log("STT_CChair_Second state is activated by chariActive and done its job."); } }
protected bool HasNewMessage() { bool result = false; CMessages msg = new CMessages(this); DataSet dsNewMsg = msg.GetUnreadMessagesDS(); if (dsNewMsg != null) { result = (dsNewMsg.Tables[0].Rows.Count > 0); } return(result); }
protected void Page_Load(object sender, EventArgs e) { msg = new CMessages(BaseMstr); if (!IsPostBack) { GetUserMessages(); LoadPatientsList(); LoadProvidersList(); } if (IsPostBack) { //get name of postback generating control string EvtSender = Request.Params["__EVENTTARGET"]; string EvtArgs = Request.Params["__EVENTARGUMENT"]; } SetJsAttributes_Recipients(chklstPatients, "chklstPatients"); SetJsAttributes_Recipients(chklstProviders, "chklstProviders"); }
public void OnMessage(CMessages.eMessages m,object data) { }
public void OnMessage(CMessages.eMessages m, object data) { Debug.Log("\"CChair_STT_First\" state receive Action pressed message."); }
/// <summary> /// Sends the message to all observers. /// </summary> /// <param name='m'> /// Message /// </param> /// <param name='data'> /// Data that message carry. /// In case message has no data set it to null. /// </param> public static void SendMessage(CMessages.eMessages m,object data) { _message = m; _data = data; NotifyObsevers(); }