private void AttachViewEvent() { AccountSetItemEditor itemEditor = new AccountSetItemEditor(_IAccountSetView); _IAccountSetView.btnCopyEvent += itemEditor.btnCopyEvent; _IAccountSetView.ActionButtonEvent += DeleteEvent; _IAccountSetView.CancelButtonEvent += CancelEvent; }
private void AttachViewEvent() { AccountSetItemEditor itemEditor = new AccountSetItemEditor(_IAccountSetView); _IAccountSetView.ActionButtonEvent += AddEvent; _IAccountSetView.btnCopyEvent += itemEditor.btnCopyEvent; _IAccountSetView.btnPasteEvent += itemEditor.btnPasteEvent; _IAccountSetView.CancelButtonEvent += CancelEvent; _IAccountSetView.txtAccountSetParaChangedForAddEvent += itemEditor.txtAccountSetParaChangedForAddEvent; _IAccountSetView.txtAccountSetParaChangedForUpdateEvent += itemEditor.txtAccountSetParaChangedForUpdateEvent; _IAccountSetView.lbDeleteItemEvent += itemEditor.DeleteItemEvent; _IAccountSetView.lbAddNewItemEvent += itemEditor.AddNewItemEvent; _IAccountSetView.lbUpItemEvent += itemEditor.UpItemEvent; _IAccountSetView.lbDownItemEvent += itemEditor.DownItemEvent; }