private static void DelButtonClick(object sender, AlertButtonClickEventArgs e) { var notifcation = e.AlertForm.AlertInfo.Tag as NotificationDTO; if (notifcation == null) { return; } if (notifcation.NotificationRecipientId == Guid.Empty) { return; } IObjectSpace objectSpace = new ODataObjectSpace(); if (e.ButtonName == "DelNotification") { e.Button.Name = "Deleted"; var recipent = objectSpace.GetOrNew("NotificationRecipient", notifcation.NotificationRecipientId, null); objectSpace.DeleteObject("NotificationRecipient", recipent); objectSpace.SaveChanges(); notifcation.NotificationRecipientId = Guid.Empty; timer_Elapsed(null, null); } else if (e.ButtonName == "MarkReaded") { e.Button.Name = "Marked"; MarkReaded(objectSpace, notifcation); e.Button.Image = new Bitmap(WinFormsResourceService.GetBitmap("sendsysmsg"), new Size(16, 16)); timer_Elapsed(null, null); } }
private void alertControl1_ButtonClick(object sender, AlertButtonClickEventArgs e) { if (e.ButtonName == "alertView") { this.InvokeCall(); } }
private void Messagebox_ButtonClick(object sender, AlertButtonClickEventArgs e) { if (e.ButtonName == "buttonOpen") { System.Diagnostics.Process.Start(saveFilePath); } }
private static void AlertButton_Click(object sender, AlertButtonClickEventArgs e, int followUpId) { //_control.GetType().GetMethod("Check").Invoke(_control, null); AudioDiagnostic _AudioDiagnostic = new AudioDiagnostic(); _AudioDiagnostic.GetAudioDetails(followUpId); _AudioDiagnostic.ShowDialog(); }
void btnListado_Click(object sender, AlertButtonClickEventArgs e) { if (e.ButtonName == "btnListado") { FrmRptCientesAtrasados frm = new FrmRptCientesAtrasados(); frm.MdiParent = this; frm.Show(); } }
private void alertControl1_ButtonClick(object sender, AlertButtonClickEventArgs e) { if (e.ButtonName == "copyInfo") { Clipboard.SetDataObject(alertText); e.Button.Down = true; XtraMessageBox.Show("系统消息已经复制到剪贴板!", "提示"); } }
void controlBroadCast_ButtonClick(object sender, AlertButtonClickEventArgs e) { if (e.ButtonName == "btnDelete") // click vao nut nay thi thong bao hien thoi khong hien vao lan sau { long id = HelpNumber.ParseInt64(((DataRow)e.AlertForm.Tag)["ID"]); CloseThongBao(id); e.AlertForm.Close(); } }