public frmBookInfo(BooksBroker broker, bool addNew) { InitializeComponent(); _AddNewBookMode = addNew; _Broker = broker; if (addNew) { } else { if (_Broker.SelectedItem != null) { _Broker.LoadText(_Broker.SelectedItem); _Title = _Broker.SelectedItem.Title; _Authors = _Broker.SelectedItem.Author; _Notes = _Broker.SelectedItem.Text; cmdAdd.Text = "Save"; } } }
public frmBooksInfo(BooksBroker broker) { _Broker = broker; InitializeComponent(); this._BookList._OnIndexSelected +=new EventIndexSelected(_BookList_OnBookIndexSelected); }