Exemplo n.º 1
0
        public void OnDeleteObject(object sender, EventArgs args)
        {
            hMailServer.Links links = APICreator.Links;
            hMailServer.Alias alias = links.get_Alias(_aliasID);

            if (Utility.AskDeleteItem(alias.Name))
            {
                alias.Delete();

                Marshal.ReleaseComObject(links);
                Marshal.ReleaseComObject(alias);

                Instances.MainForm.RefreshParentNode();
            }
        }
Exemplo n.º 2
0
 public void Delete()
 {
     _object.Delete();
 }