Ejemplo n.º 1
0
        public void OnDeleteAccount(object sender, EventArgs args)
        {
            // Delete the domain.
            hMailServer.Links   links   = APICreator.Links;
            hMailServer.Account account = links.get_Account(_accountID);

            if (Utility.AskDeleteItem(account.Address))
            {
                account.Delete();

                Marshal.ReleaseComObject(links);
                Marshal.ReleaseComObject(account);

                Instances.MainForm.RefreshParentNode();
            }
        }
Ejemplo n.º 2
0
 public void DeleteAccount(string address)
 {
     hMailServer.Account account = DomainUtil.GetDomain(address).Accounts.get_ItemByAddress(address);
     account.Delete();
 }
Ejemplo n.º 3
0
 public void Delete()
 {
     _object.Delete();
 }
Ejemplo n.º 4
0
 protected override void DeleteItem(ListViewItem item)
 {
     hMailServer.Account account = item.Tag as hMailServer.Account;
     account.Delete();
 }