public AuthorizationFormPresenter(IAuthorizationForm authorizationForm, UserListModel model, IMessageBoxService messageService) { this.authorizationForm = authorizationForm; this.model = model; this.messageService = messageService; this.authorizationForm.LogIn += AuthorizationForm_LogIn; }
public MainForm(UserStatus status, string Name, double cash, int id, IAuthorizationForm form) { InitializeComponent(); gridLine.CellDoubleClick += GridLine_CellDoubleClick; this.Load += MainForm_Load; this.linkMyBets.Click += ShowMyBets; this.linkBack.Click += LeaveAccount; this.FormClosed += MainForm_FormClosed; this.invokedForm = form; this.UserName = Name; this.Cash = cash; this.Id = id; this.Status = status; }