Beispiel #1
0
        private void BtnExport_Click(object sender, RoutedEventArgs e)
        {
            var sfd = FileDialogFactory.GetSFD(DataFileInfo.ExcelSAndTxtFilter);

            if (!(bool)sfd.ShowDialog())
            {
                return;
            }
            switch (sfd.FilterIndex)
            {
            case 1:
            case 2: ExcelIO.Write(sfd.FileName, rlvm.Table); break;

            case 3: TxtIO.Write(sfd.FileName, rlvm.Table, ','); break;

            default: return;
            }
        }
Beispiel #2
0
        private void BtnExport_Click(object sender, RoutedEventArgs e)
        {
            var sfd = FileDialogFactory.GetSFD(DataFileInfo.ExcelSAndTxtFilter);

            if (!(bool)sfd.ShowDialog())
            {
                return;
            }
            switch (sfd.FilterIndex)
            {
            case 1:
            case 2: ExcelIO.Write(sfd.FileName, glvm.Table); break;

            case 3: TxtIO.Write(sfd.FileName, glvm.Table, ','); break;

            default: return;
            }
            FadeInOutTextBlockHelper.MakeFadeInOut(greenPromptTB, "导出成功");
        }