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
Esempio n. 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();
 }
Esempio n. 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();
 }
Esempio n. 3
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();
 }