mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
More small cleanups
This commit is contained in:
parent
0657c490c8
commit
66601246b1
@ -43,7 +43,6 @@ namespace Acacia.UI.Outlook
|
||||
Images.ColorDepth = ColorDepth.Depth32Bit;
|
||||
Images.ImageSize = new Size(16, 16);
|
||||
|
||||
// TODO: memory management
|
||||
using (IExplorer explorer = ThisAddIn.Instance.GetActiveExplorer())
|
||||
using (ICommandBars cmdBars = explorer.GetCommandBars())
|
||||
{
|
||||
|
@ -48,8 +48,6 @@ namespace Acacia.Utils
|
||||
public event MailResponseEventHandler Reply;
|
||||
private void OnReply(IMailItem mail, IMailItem response)
|
||||
{
|
||||
// TODO: check release of first item
|
||||
// TODO: release if not sending event
|
||||
try
|
||||
{
|
||||
if ((Reply != null || Respond != null) && mail != null && response != null)
|
||||
@ -69,8 +67,6 @@ namespace Acacia.Utils
|
||||
public event MailResponseEventHandler ReplyAll;
|
||||
private void OnReplyAll(IMailItem mail, IMailItem response)
|
||||
{
|
||||
// TODO: check release of first item
|
||||
// TODO: release if not sending event
|
||||
try
|
||||
{
|
||||
if ((ReplyAll != null || Respond != null) && mail != null && response != null)
|
||||
@ -90,8 +86,6 @@ namespace Acacia.Utils
|
||||
public event MailResponseEventHandler Forward;
|
||||
private void OnForward(IMailItem mail, IMailItem response)
|
||||
{
|
||||
// TODO: check release of first item
|
||||
// TODO: release if not sending event
|
||||
try
|
||||
{
|
||||
if ((Forward != null || Respond != null) && mail != null && response != null)
|
||||
@ -162,7 +156,6 @@ namespace Acacia.Utils
|
||||
{
|
||||
try
|
||||
{
|
||||
// TODO: release item if event not sent
|
||||
if (ItemSend != null && item != null)
|
||||
{
|
||||
using (IMailItem wrapped = Mapping.WrapOrDefault<IMailItem>(item, false))
|
||||
|
@ -130,7 +130,6 @@ namespace Acacia.ZPush
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO
|
||||
ThisAddIn.Instance.InvokeUI(() =>
|
||||
{
|
||||
Logger.Instance.Warning(this, "Password not available for account: {0}", account);
|
||||
@ -182,7 +181,7 @@ namespace Acacia.ZPush
|
||||
catch (System.Exception e) { Logger.Instance.Error(this, "Exception in Explorer_SelectionChange.ActiveFolderChange: {0}", e); }
|
||||
}
|
||||
}
|
||||
// TODO: cache value
|
||||
// TODO: cache value?
|
||||
if (ZPushAccountChange != null)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user