Bloom.CollectionTab.LibraryListView.MakeBloomPack C# (CSharp) Method

MakeBloomPack() private method

private MakeBloomPack ( bool forReaderTools ) : void
forReaderTools bool
return void
        internal void MakeBloomPack(bool forReaderTools)
        {
            using (var dlg = new SaveFileDialog())
            {
                dlg.FileName = _model.GetSuggestedBloomPackPath();
                dlg.Filter = "BloomPack|*.BloomPack";
                dlg.RestoreDirectory = true;
                dlg.OverwritePrompt = true;
                if (DialogResult.Cancel == dlg.ShowDialog())
                {
                    return;
                }
                _model.MakeBloomPack(dlg.FileName, forReaderTools);
            }
        }

Usage Example

Example #1
0
 private void OnMakeBloomPackButton_Click(object sender, EventArgs e)
 {
     // Something in the Mono runtime state machine keeps the GTK filechooser from getting the
     // focus immediately when we invoke _collectionListView.MakeBloomPack() directly at this
     // point.  Waiting for the next idle gets it into a state where the filechooser does receive
     // the focus as desired.  See https://silbloom.myjetbrains.com/youtrack/issue/BL-5809.
     if (SIL.PlatformUtilities.Platform.IsMono)
     {
         Application.Idle += DeferredBloompackFileChooser;
     }
     else
     {
         _collectionListView.MakeBloomPack(false);
     }
 }
All Usage Examples Of Bloom.CollectionTab.LibraryListView::MakeBloomPack