//--------------------------------------------------------------------// // M e t h o d // // p r n F i l e S e l e c t // //--------------------------------------------------------------------// // // // Initiate 'open file' dialogue for PRN file. // // // //--------------------------------------------------------------------// private Boolean prnFileSelect(ref String prnFilename) { OpenFileDialog openDialog = ToolCommonFunctions.createOpenFileDialog(prnFilename); openDialog.Filter = "Print Files|" + "*.prn; *.pcl; *.dia;" + "*.PRN; *.PCL; *.DIA" + "|Font files|" + "*.sfp; *.sfs; *.sft; *.sfx; " + "*.SFP; *.SFS; *.SFT, *.SFX" + "|Overlay files|" + "*.ovl; *.ovx;" + "*.OVL; *.OVX" + "|All files|" + "*.*"; Nullable <Boolean> dialogResult = openDialog.ShowDialog(); if (dialogResult == true) { prnFilename = openDialog.FileName; } return(dialogResult == true); }
//--------------------------------------------------------------------// // M e t h o d // // s e l e c t I m a g e F i l e // //--------------------------------------------------------------------// // // // Initiate 'open file' dialogue. // // // //--------------------------------------------------------------------// private Boolean selectImageFile(ref String selectedName) { OpenFileDialog openDialog = ToolCommonFunctions.createOpenFileDialog(selectedName); openDialog.Filter = "Bitmap Files|*.bmp; *.BMP"; Nullable <Boolean> dialogResult = openDialog.ShowDialog(); if (dialogResult == true) { selectedName = openDialog.FileName; } return(dialogResult == true); }
//--------------------------------------------------------------------// // M e t h o d // // s e l e c t P r n F i l e // //--------------------------------------------------------------------// // // // Initiate 'open file' dialogue. // // // //--------------------------------------------------------------------// private Boolean selectPrnFile(ref String selectedName) { OpenFileDialog openDialog = ToolCommonFunctions.createOpenFileDialog(selectedName); openDialog.Filter = "Print Files|*.prn; *.PRN" + "|All files|*.*"; Nullable <Boolean> dialogResult = openDialog.ShowDialog(); if (dialogResult == true) { selectedName = openDialog.FileName; } return(dialogResult == true); }
//--------------------------------------------------------------------// // M e t h o d // // s e l e c t O v l F i l e P C L // //--------------------------------------------------------------------// // // // Initiate 'open file' dialogue for the PCL overlay file. // // // //--------------------------------------------------------------------// private Boolean selectOvlFilePCL(ref String selectedName) { OpenFileDialog openDialog = ToolCommonFunctions.createOpenFileDialog(selectedName); openDialog.CheckFileExists = false; openDialog.Filter = "Overlay Files|*.ovl; *.OVL" + "|All files|*.*"; Nullable <Boolean> dialogResult = openDialog.ShowDialog(); if (dialogResult == true) { selectedName = openDialog.FileName; } return(dialogResult == true); }
//--------------------------------------------------------------------// // M e t h o d // // s e l e c t P r n F i l e // //--------------------------------------------------------------------// // // // Initiate 'open file' dialogue. // // // //--------------------------------------------------------------------// private Boolean selectPrnFile(ref String prnFilename) { OpenFileDialog openDialog = ToolCommonFunctions.createOpenFileDialog(prnFilename); openDialog.Filter = "Print Files|" + "*.prn; *.pcl; *.dia;" + "*.PRN; *.PCL; *.DIA" + "|All files|" + "*.*"; Nullable <Boolean> dialogResult = openDialog.ShowDialog(); if (dialogResult == true) { prnFilename = openDialog.FileName; } return(dialogResult == true); }