public CreateUserDialog(Action callback) { InitializeComponent(); if (callback != null) { successCallback = new SuccessCallBackEventHandler(callback); } }
public RentBooksDialog(string bookNumber, Action action) { InitializeComponent(); this.bookNumber = bookNumber; if (action != null) { successCallback = new SuccessCallBackEventHandler(action); } initlizationBookInfo(bookNumber); this.userId_txt.Visible = false; }