Пример #1
0
 protected virtual void exportButton_Click(object sender, EventArgs e)
 {
     if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
     {
         try {
             Content.ExportData(GenericExporter.Export(), saveFileDialog.FileName);
         } catch (Exception ex) {
             ErrorHandling.ShowErrorDialog(this, ex);
         }
     }
 }
        protected override void exportButton_Click(object sender, EventArgs e)
        {
            var provider = Content as IVRPInstanceProvider <T>;

            if (provider != null)
            {
                if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
                {
                    try {
                        provider.Export(GenericExporter.Export(), saveFileDialog.FileName);
                    } catch (Exception ex) {
                        ErrorHandling.ShowErrorDialog(this, ex);
                    }
                }
            }
        }