Form that lets the user enter a file name for a new file. As the user is entering characters, it checks if the file exists and visually indicates whether the file exists or not.
Inheritance: System.Windows.Forms.Form
示例#1
0
 /// <summary>
 /// Shows the new file form to create a word document
 /// </summary>
 private void showNewFileDialogForWordDoc()
 {
     _newFileNameForm                     = new NewFileNameForm();
     _newFileNameForm.EvtDone            += _newFileNameForm_EvtDone;
     _newFileNameForm.CreateFileType      = NewFileNameForm.FileType.Word;
     _newFileNameForm.CreateFileDirectory = SmartPath.ACATNormalizePath(Common.AppPreferences.NewWordDocCreateFolder);
     _newFileNameForm.ShowDialog();
 }
示例#2
0
 /// <summary>
 /// Shows the new file form to create a text file
 /// </summary>
 private void showNewFileDialogForTextFile()
 {
     _newFileNameForm                     = new NewFileNameForm();
     _newFileNameForm.EvtDone            += _newFileNameForm_EvtDone;
     _newFileNameForm.CreateFileType      = NewFileNameForm.FileType.Text;
     _newFileNameForm.CreateFileDirectory = SmartPath.ACATNormalizePath(Settings.NewTextFileCreateFolder);
     _newFileNameForm.ShowDialog();
 }
示例#3
0
文件: NewFileAgent.cs 项目: glwu/acat
 /// <summary>
 /// Shows the new file form to create a word document
 /// </summary>
 private void showNewFileDialogForWordDoc()
 {
     _newFileNameForm = new NewFileNameForm();
     _newFileNameForm.EvtDone += _newFileNameForm_EvtDone;
     _newFileNameForm.CreateFileType = NewFileNameForm.FileType.Word;
     _newFileNameForm.CreateFileDirectory = SmartPath.ACATNormalizePath(Common.AppPreferences.NewWordDocCreateFolder);
     _newFileNameForm.ShowDialog();
 }