Example #1
0
        private void WriteToFileBtn_Click(object sender, EventArgs e)
        {
            string id = "Default";

            if (IsotopicsIdComboBox.SelectedItem != null)
            {
                id = IsotopicsIdComboBox.SelectedItem.ToString();
            }
            SaveFileDialog dlg = new SaveFileDialog();

            dlg.Filter           = "Isotopics files (.csv)|*.csv|                 (.txt)| *.txt";
            dlg.DefaultExt       = ".csv";
            dlg.FileName         = id + ".csv";
            dlg.InitialDirectory = NC.App.AppContext.ResultsFilePath;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                NCCFile.INCC5FileExportUtils x = new NCCFile.INCC5FileExportUtils();
                x.Output.Filename = dlg.FileName;
                x.IsoIsotopics.Add(m_iso);
                x.ProcessIsotopicsToFile();
            }
        }
Example #2
0
 private void WriteToFileBtn_Click(object sender, EventArgs e)
 {
     string id = "Default";
     if (IsotopicsIdComboBox.SelectedItem != null)
         id = IsotopicsIdComboBox.SelectedItem.ToString();
     SaveFileDialog dlg = new SaveFileDialog();
     dlg.Filter = "Isotopics files (.csv)|*.csv|                 (.txt)| *.txt";
     dlg.DefaultExt = ".csv";
     dlg.FileName = id + ".csv";
     dlg.InitialDirectory = NC.App.AppContext.ResultsFilePath;
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         NCCFile.INCC5FileExportUtils x = new NCCFile.INCC5FileExportUtils();
         x.Output.Filename = dlg.FileName;
         x.IsoIsotopics.Add(m_iso);
         x.ProcessIsotopicsToFile();
     }
 }