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); } }
public string GetBreadCrumb() { // 末尾にドットを含む return(Fullpath.Substring(0, Fullpath.LastIndexOf('.') + 1)); }