예제 #1
0
        private void Export()
        {
            string Fullpath;

            using (SaveFileDialog saveFile = new SaveFileDialog()
            {
                AddExtension = true,
                Filter = "Yaml files (*.yaml)|*.yaml"
            })
            {
                saveFile.ShowDialog();
                Fullpath = saveFile.FileName;
            }
            if (Fullpath.Trim() != "")
            {
                string path = Path.GetDirectoryName(Fullpath);
                string file = Path.GetFileName(Fullpath);

                Save(path, file);
            }
        }
예제 #2
0
 public string GetBreadCrumb()
 {
     // 末尾にドットを含む
     return(Fullpath.Substring(0, Fullpath.LastIndexOf('.') + 1));
 }