Esempio n. 1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EUAlert alert = (EUAlert)AlertsListView.SelectedItems[0].Tag;

            if (alert.Title.IndexOf("[SPOutlookConnector]") == -1)
            {
                string alertLink = webUrl + "/_layouts/SubEdit.aspx?Alert={" + alert.ID + "}&List={" + alert.ListID + "}";
                Process.Start("IExplore.exe", alertLink);
            }
            else
            {
                AlertEditForm alertEditForm = new AlertEditForm();
                alertEditForm.Initialize(siteSetting, webUrl, alert.ListName, alert.ListID, alert);
                alertEditForm.ShowDialog();
            }
        }
Esempio n. 2
0
        private void NewButton_Click(object sender, EventArgs e)
        {
            AlertAddForm alertAddForm = new AlertAddForm();

            alertAddForm.Initialize(webUrl, siteSetting);
            alertAddForm.ShowDialog();
            if (alertAddForm.DialogResult == DialogResult.OK)
            {
                AlertEditForm alertEditForm = new AlertEditForm();
                EUAlert       alert         = new EUAlert();
                alert.Title  = alertAddForm.listName + " Alert";
                alert.ListID = alertAddForm.listID;
                alertEditForm.Initialize(siteSetting, webUrl, alertAddForm.listName, alertAddForm.listID, alert);
                alertEditForm.ShowDialog();
                if (alertEditForm.DialogResult == DialogResult.OK)
                {
                    Initialize();
                }
            }
        }