Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 private void alertControl1_ButtonClick(object sender, AlertButtonClickEventArgs e)
 {
     if (e.ButtonName == "alertView")
     {
         this.InvokeCall();
     }
 }
Ejemplo n.º 3
0
 private void Messagebox_ButtonClick(object sender, AlertButtonClickEventArgs e)
 {
     if (e.ButtonName == "buttonOpen")
     {
         System.Diagnostics.Process.Start(saveFilePath);
     }
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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("系统消息已经复制到剪贴板!", "提示");
     }
 }
Ejemplo n.º 7
0
 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();
     }
 }