private void ExecuteExportPlugin(IExportPlugin obj) { try { obj.Execute(); } catch (Exception ex) { Log.Error("Error refresh session ", ex); ServiceProvider.WindowsManager.ExecuteCommand(WindowsCmdConsts.MainWnd_Message, ex.Message); } }
private void exportAsCsvToolStripMenuItem_Click_1(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "CSV|*.csv"; saveFileDialog.Title = "Save a CSV file"; saveFileDialog.ShowDialog(); if (saveFileDialog.FileName == null) { return; } bool isFileSaved = plugin.Execute(Data, saveFileDialog.FileName); if (isFileSaved) { MessageBox.Show("The CSV file has been exported with success"); } else { MessageBox.Show("The export operation has failed"); } }
private void ExecuteExportPlugin(IExportPlugin obj) { HideFlatOuts(); obj.Execute(); }
private void ExecuteExportPlugin(IExportPlugin obj) { Flyouts[0].IsOpen = false; Flyouts[1].IsOpen = false; obj.Execute(); }
private void ExecuteExportPlugin(IExportPlugin obj) { obj.Execute(); }