private void btnViewRiskAndAction_Click(object sender, EventArgs e)
        {
            // View / Print the grid:
            CopyAttachmentFilesToDir();
            ModelRiskAlertHelper.GenerateRARHtml(getAlertTitle(), getAlertText(), ModelRiskAlertHelper.GetRARHtmlAlarmFile());
            HtmlPopup win = new HtmlPopup(DirectoryAndFileHelper.ClientAppDataFolder + ModelRiskAlertHelper.GetRARHtmlAlarmFile());

            win.ShowBackForward = false;
            win.ShowDialog();
        }
        private void OpenView()
        {
            if (dgvAlerts.SelectedRows.Count > 0)
            {
                // Get the id:
                ModelRiskAlert selAlert = dgvAlerts.SelectedRows[0].Tag as ModelRiskAlert;

                if (selAlert != null)
                {
                    // Get the alert
                    foreach (ModelRiskAlert alert in _alerts)
                    {
                        if (alert.IDModelRiskAlert == selAlert.IDModelRiskAlert)
                        {
                            // Show this alert!!!!

                            // View / Print the grid:
                            CopyAttachmentFilesToDir(alert);
                            ModelRiskAlertHelper.GenerateRARHtml(GetAlertTitle(selAlert), GetAlertText(selAlert), ModelRiskAlertHelper.GetRARHtmlAlarmFile());
                            var win = new HtmlPopup(DirectoryAndFileHelper.ClientAppDataFolder + ModelRiskAlertHelper.GetRARHtmlAlarmFile())
                            {
                                ShowBackForward = false
                            };
                            win.ShowDialog();

                            break;
                        }
                    }
                }
            }
        }