Esempio n. 1
0
        private void AddLink_FormClosed(object sender, FormClosedEventArgs e)
        {
            IAddChangeLink frm = (IAddChangeLink)Application.OpenForms[_previousForm];

            if (newLink.name != null)
            {
                frm.addLink(newLink);
            }
            frm.Show();
        }
        private void ChangeLink_FormClosed(object sender, FormClosedEventArgs e)
        {
            IAddChangeLink frm = (IAddChangeLink)Application.OpenForms[_previousForm];

            if (_changeType == "Change")
            {
                frm.changeLink(_oldUrl, _link);
            }
            else if (_changeType == "Delete")
            {
                frm.deleteLink(_oldUrl);
            }
            frm.Show();
        }