private void OnTxtMsg_Click() { FormTxtMsgEdit FormTME=new FormTxtMsgEdit(); Patient pat=Patients.GetPat(CurPatNum); FormTME.PatNum=CurPatNum; FormTME.WirelessPhone=pat.WirelessPhone; FormTME.TxtMsgOk=pat.TxtMsgOk; FormTME.ShowDialog(); if(FormTME.DialogResult==DialogResult.OK) { RefreshCurrentModule(); } }
private void butText_Click(object sender,EventArgs e) { string message; message=PrefC.GetString(PrefName.ConfirmTextMessage); message=message.Replace("[NameF]",pat.GetNameFirst()); message=message.Replace("[NameFL]",pat.GetNameFL()); message=message.Replace("[date]",AptCur.AptDateTime.ToShortDateString()); message=message.Replace("[time]",AptCur.AptDateTime.ToShortTimeString()); FormTxtMsgEdit FormTME=new FormTxtMsgEdit(); FormTME.PatNum=pat.PatNum; FormTME.WirelessPhone=pat.WirelessPhone; FormTME.Message=message; FormTME.TxtMsgOk=pat.TxtMsgOk; FormTME.ShowDialog(); }
private void butText_Click(object sender,EventArgs e) { if(Plugins.HookMethod(this,"FormApptEdit.butText_Click_start",pat,AptCur,this)) { return; } string message; message=PrefC.GetString(PrefName.ConfirmTextMessage); message=message.Replace("[NameF]",pat.GetNameFirst()); message=message.Replace("[NameFL]",pat.GetNameFL()); message=message.Replace("[date]",AptCur.AptDateTime.ToShortDateString()); message=message.Replace("[time]",AptCur.AptDateTime.ToShortTimeString()); FormTxtMsgEdit FormTME=new FormTxtMsgEdit(); FormTME.PatNum=pat.PatNum; FormTME.WirelessPhone=pat.WirelessPhone; FormTME.Message=message; FormTME.TxtMsgOk=pat.TxtMsgOk; FormTME.ShowDialog(); }