Beispiel #1
0
        /// <summary>
        /// Save tag file Manually
        /// </summary>
        /// <param name="filename">tag file name</param>
        public void SaveAsCSV(string filename)
        {
            SaveFileDialog fileDialog = new SaveFileDialog();

            fileDialog.RestoreDirectory = true;
            fileDialog.InitialDirectory = _filepath;
            fileDialog.Filter           = "CSV文件|*.csv*|XML文件|*.xml";
            fileDialog.FileName         = filename.Substring(1, filename.Length - 1);
            fileDialog.RestoreDirectory = true;

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                CSVFileHelper.SaveCSV(_tagsTable.Tags, fileDialog.FileName);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Save tag file automatically
 /// </summary>
 /// <param name="filename">tag file name</param>
 public void SaveCSV(string filename)
 {
     CSVFileHelper.SaveCSV(_tagsTable.Tags, _filepath + filename);
 }