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(); } }
public void DeleteAccount(string address) { hMailServer.Account account = DomainUtil.GetDomain(address).Accounts.get_ItemByAddress(address); account.Delete(); }
public void Delete() { _object.Delete(); }
protected override void DeleteItem(ListViewItem item) { hMailServer.Account account = item.Tag as hMailServer.Account; account.Delete(); }