示例#1
0
 private void OnSaveFileClick(object sender, EventArgs e)
 {
     if (SaveFileForm.StartForResult(textContainer.Text, fileName, pathToFile))
     {
         textContainer.Modified = false;
     }
 }
示例#2
0
        public static bool StartForResult(string content, string fileName, string pathToFile = "")
        {
            SaveFileForm form = new SaveFileForm(content, fileName, pathToFile);

            form.ShowDialog();
            return(form.isSaved);
        }