ExportDataOnly() public method

Exports the data
public ExportDataOnly ( ) : void
return void
        /// <summary>
        ///   Export menu
        /// </summary>
        private void ExportOnClick(object sender, EventArgs e)
        {
            var mi = (ToolStripMenuItem) sender;
            string name = mi.Name;

            var exporter = new Exporter();

            switch (name)
            {
                case "dataOnly":
                    exporter.ExportDataOnly();
                    break;
                case "CSVData":
                    exporter.ExportCSVData();
                    break;
                case "indicators":
                    exporter.ExportIndicators();
                    break;
                case "summary":
                    exporter.ExportBarSummary();
                    break;
                case "positions":
                    exporter.ExportPositions(true);
                    break;
                case "positionsNoTransfer":
                    exporter.ExportPositions(false);
                    break;
                case "positionInMoney":
                    exporter.ExportPositionsInMoney(true);
                    break;
                case "positionInMoneyNoTransfer":
                    exporter.ExportPositionsInMoney(false);
                    break;
            }
        }
        /// <summary>
        /// Export menu
        /// </summary>
        void Export_OnClick(object sender, EventArgs e)
        {
            ToolStripMenuItem mi = (ToolStripMenuItem)sender;
            string strMIName = mi.Name;

            Exporter exporter = new Exporter();

            switch (strMIName)
            {
                case "dataOnly":
                    exporter.ExportDataOnly();
                    break;
                case "CSVData":
                    exporter.ExportCSVData();
                    break;
                case "indicators":
                    exporter.ExportIndicators();
                    break;
                case "summary":
                    exporter.ExportBarSummary();
                    break;
                case "positions":
                    exporter.ExportPositions(true);
                    break;
                case "positionsNoTransfer":
                    exporter.ExportPositions(false);
                    break;
                case "positionInMoney":
                    exporter.ExportPositionsInMoney(true);
                    break;
                case "positionInMoneyNoTransfer":
                    exporter.ExportPositionsInMoney(false);
                    break;
                default:
                    break;
            }

            return;
        }