Here are the examples of the csharp api class Bloom.CollectionTab.LibraryListView.GetBookInfoFromButton(System.Windows.Forms.Button) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
0
1. Example
Project: BloomDesktop
Source File: LibraryListView.cs
Source File: LibraryListView.cs
bool IsUsableBook(Button bookButton) { //This caused more problems then it was worth for people editing source books they got off of BloomLibrary, or making a Bloompack of shells, etc. return true; // We'd prefer to use collection.Type == BookCollection.CollectionType.TheOneEditableCollection) // but we don't have access to the collection at all the points where we need to evaluate this. // Depending on the parent like this unfortunately means we can't use this method until the button // has its parent. // Either way, the basic idea is that books in the main collection you are now editing are always usable. if (bookButton.Parent == _primaryCollectionFlow) return true; var bookInfo = GetBookInfoFromButton(bookButton); return IsSuitableSourceForThisEditableCollection(bookInfo); }
0
2. Example
Project: BloomDesktop
Source File: LibraryListView.cs
Source File: LibraryListView.cs
private Button FindBookButton(BookInfo bookInfo) { return AllBookButtons().FirstOrDefault(b => GetBookInfoFromButton(b) == bookInfo); }
0
3. Example
Project: BloomDesktop
Source File: LibraryListView.cs
Source File: LibraryListView.cs
private void ImproveAndRefreshBookButtons() { ButtonRefreshInfo buttonRefreshInfo; if (!_but/n ..... /n //View Source file for more details /n }
0
4. Example
Project: BloomDesktop
Source File: LibraryListView.cs
Source File: LibraryListView.cs
private void OnClickBook(object sender, EventArgs e) { var thisBtn = (Button)sender; if (!I/n ..... /n //View Source file for more details /n }