コード例 #1
0
ファイル: Account.cs プロジェクト: SCDrifter/Hyperwave
 private void mClient_AccountRemoved(object sender, AccountOperationEventArgs e)
 {
     if (e.Account == this)
     {
         mClient.AccountRemoved -= mClient_AccountRemoved;
         mClient.UpdateAccountOperationStarted -= mClient_UpdateAccountOperationStarted;
     }
 }
コード例 #2
0
ファイル: EveMailClient.cs プロジェクト: SCDrifter/Hyperwave
        void OnAccountAction(bool added, Account account)
        {
            AccountOperationEventArgs e = new AccountOperationEventArgs()
            {
                Account = account
            };

            if (added && AccountAdded != null)
            {
                AccountAdded(this, e);
            }
            else if (!added && AccountRemoved != null)
            {
                AccountRemoved(this, e);
            }
        }